Have a bit of a small issue of late,
Have made quite a big multi page custom form and one of the sections asks the user to upload a file to the form. Acceptable formats are all defined and limit of file size has been set. Originally we did not enforce MIME Type as we have had some issues before where people cannot properly upload files in other forms we have created.
I've had a fair number of people lately who have filled out this form and they can successfully upload the file but the confirmation email that is created and sent to them after completing the form DOES NOT contain the attached file and when I do a submission log report on the recent form submissions, I can see a lot of files named "No-file-uploaded" coming up but with a approx file size next to them (WTF?)
So when I go into matrix, I can download the submitted file but it appears to be corrupted and missing a file extension. I play a cause and effect 'guessing game' of adding file extensions until I can open the file and there it is! Obviously this should not be happening and right back at the start, the attachment should be going onto the confirmation email.
I have had some users email me the attachments via email and I have checked them out and none of them appear to be corrupted or badly formatted. They are not oversized nor in an unsupported format. I have since enforced the MIME type option on the file upload asset in Squiz Matrix which I hope will prevent 'bad files' from being attached.
I suspect that the blame still lies with the original file attachment but its hard to locate the 'smoking gun' when I cannot find anything out of place in the process. Furthermore, some submissions have been successful, and others have not.
So far the 'bad' attachments include .pdf, .doc and .docx. We are currently using version 4.18.4 of Squiz Matrix.