Form not sending with attachments
-
Hi,
I have a form that will submit and mail correctly when I do not include an attachment, but including an attachment (small word docs and pdfs I’m testing with) appears to upload but gives me an eternal spinner when I try to submit using ajax (along with a console error: ‘Failed to load resource: The network connection was lost. {code: “fetch_error”, message: “You are probably offline.”}’ ), or when ajax is disabled (tried multiple browsers, but in the case of Safari) an error like: ‘Safari can’t open the page “https://development.irasher.com/tkandk/career/dispatcher-dco/#wpcf7-f26-p87-o1” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.’This happens 95% of the time, although on two occasions(!) during various tests, things have mysteriously worked. When I duplicate the materials to re-test–files, field content, everything–they don’t work the next time.
I’ve tried add_filter( ‘wpcf7_load_js’, ‘__return_false’ ) in functions to run the form without ajax. I’ve added remove_action( ‘template_redirect’, ‘wpcf7_cleanup_upload_files’, 20 ) to make sure files aren’t being removed too quickly from the temp dir. I’ve tried turning off plugins and switching to a default theme. I’ve also tried making the permissions wide open on the wpcf7_uploads folder, and I’ve tried explicitly setting a new uploads folder.
I’m running this on a development server on SiteGround. I am not seeing errors generated in the SiteGrounds logs, or in my php error logs. I’m sorry to bother you, but I’m stumped at this point. Do you have any thoughts about what might be happening? I can provide access if useful.
Thanks,
IraThe page I need help with: [log in to see the link]
- The topic ‘Form not sending with attachments’ is closed to new replies.