*

reflexus

  • ****
  • 146 posts
Attachment
« on: September 17, 2020, 05:01:08 PM »
Hello, how to add attachment in item contact form? I use IM plugin und for item contact form <?php ContactForm::your_attachment(); ?>

P.S. After more tests I have found bug: with "Form submit without reload (Ajax)" it not work.

How to fix it?
« Last Edit: September 17, 2020, 05:19:10 PM by reflexus »

*

MB Themes

Re: Attachment
« Reply #1 on: September 17, 2020, 08:30:34 PM »
@reflexus
Attachment will probably not flow from contact form to instant messenger.
Attachment is sent only when "ajax forms submission" is disabled, as you cannot send file in such case.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: Attachment
« Reply #2 on: September 17, 2020, 08:58:47 PM »
@reflexus
Attachment will probably not flow from contact form to instant messenger.
Attachment is sent only when "ajax forms submission" is disabled, as you cannot send file in such case.

there is sure to be a solution

*

reflexus

  • ****
  • 146 posts
Re: Attachment
« Reply #3 on: September 17, 2020, 09:37:28 PM »
@reflexus
Attachment will probably not flow from contact form to instant messenger.
Attachment is sent only when "ajax forms submission" is disabled, as you cannot send file in such case.

with only this fix you can send file with ajax too:

data: new FormData(form[0]),
cache       : false,
processData : false,
contentType : false

*

MB Themes

Re: Attachment
« Reply #4 on: September 18, 2020, 10:05:53 AM »
@reflexus
I've done a lot of testing and nothing worked for me.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: Attachment
« Reply #5 on: September 18, 2020, 11:56:49 AM »
@reflexus
I've done a lot of testing and nothing worked for me.

And this:

Quote
data: new FormData(form[0]),
cache       : false,
processData : false,
contentType : false

This works for me fine!