Osclass Support Forums
Osclass theme support => Alpha Osclass Theme => Topic started by: reflexus 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?
-
@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.
-
@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
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
-
@reflexus
I've done a lot of testing and nothing worked for me.
-
@reflexus
I've done a lot of testing and nothing worked for me.
And this:
data: new FormData(form[0]),
cache : false,
processData : false,
contentType : false
This works for me fine!