<![CDATA[ Hosting problems: FormIt and attachments - My Forums]]> https://forums.modx.com/thread/?thread=97521 <![CDATA[Hosting problems: FormIt and attachments]]> https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-527327
The form itself works on the client's server, but all send attachments are received broken or sometimes even not recognized in validation process ("pls. select a file", though there is selected a file!). PDF files won't open and JPGs are corrupted (like a doublet image is inside the image). Perhaps you can help me answering the following questions:


  • What's the path to the script or endpoint, which includes the form logic?
  • Short description, what happens when a form is send. How are attachments handled/ will they be send as they are or does there happen some kind of conversion or so?
  • Which encoding is used in the mails? Is it the same like the DB (e.g. UTF-8)
  • How are the mails send, is it php.mail() or something else? How does php.mail() work on the server?

Really hope you can help me and you understand what I mean. My English is not really perfect. ;-)]]>
jonasdroste Jun 23, 2015, 01:56 AM https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-527327
<![CDATA[Re: Hosting problems: FormIt and attachments]]> https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-546243
My guess would be an issue with mod_security.

It would not be surprising at all to find mod_security reacting to a .docx attachment, though resetting the server sounds a little extreme. wink]]>
BobRay Nov 07, 2016, 11:40 PM https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-546243
<![CDATA[Re: Hosting problems: FormIt and attachments]]> https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-546233
The last time we received a .docx file was July, so this could have been broken for some time. It's only since I upgraded to 2.5.1 and been testing did I find it.

Apache error logs report:
fcgid:warn] (9)Bad file descriptor: [client ] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer attachment-test.html

Trying to send a .docx attachment resets the server. I think it's probably a GoDaddy configuration issue, but they're always going to blame the plugin/extra. My most recent support call they insisted that I update my WordPress plugin. I gave up telling them it was MODX formit and up to date! So I'm desperately trying to build a solid case to go back to them.

I've checked the enctype and it used to work fine previously so I don't know why it wouldn't now and all other file types are fine. doc/pdf/txt etc.

Any help would be greatly appreciated.]]>
dave-b Nov 07, 2016, 08:30 PM https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-546233
<![CDATA[Re: Hosting problems: FormIt and attachments]]> https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-544029
Try using a Gmail/Hotmail account for sending to see if it makes any difference.
See for Gmail-settings (you'll need an Gmail account of course) https://support.google.com/a/answer/176600?hl=en

Another important thing when sending files: change the enctype of your form. For example:
<form action="[[~1~]]" method="post" enctype="multipart/form-data">


Good luck!]]>
hartmanrik Aug 11, 2016, 05:47 AM https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-544029
<![CDATA[Re: Hosting problems: FormIt and attachments]]> https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-527331
For handling attachments with FormIt, see http://codingpad.maryspad.com/2011/03/09/modx-revolution-adding-an-attachment-field-to-a-formit-form/

]]>
sottwell Jun 23, 2015, 06:33 AM https://forums.modx.com/thread/97521/hosting-problems-formit-and-attachments#dis-post-527331