Hello, I am running into an issue uploading files to a contact’s filebox and I am not sure where the problem lies. I will do my best to walk through the issue.
So on the front end I am uploading a form with an image file using ajax type:POST to be handled by a php script. When I attempt to upload it to a contact I get an error (Error uploading file: FileUploads must have an extension. Unsupported file type). When I echo back the file information I get this:
I tried two methods to upload the file to the contact
-
Using file open/read functions
-
Directly getting the files contents
This is the last thing I need to work properly for the application but I can’t seem to figure out what I’m doing wrong. Any help would be greatly appreciated. Thanks so much.