File must have extension during upload error when extension present

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:

quick2

I tried two methods to upload the file to the contact

  1. Using file open/read functions
    quick3

  2. Directly getting the files contents
    quick4

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.

Funny story, so last night before I fell asleep I realized why this wasn’t working… sorry for the unnecessary post the problem is the name portion during the uploadFile call doesn’t have a file extension it should say something like “ProfilePicture.jpg”