milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Uploaded files contain data, not file contents #131

Closed Ali1 closed 11 years ago

Ali1 commented 11 years ago

Probably an issue with transit, but files being uploaded through a simple CakePHP form appear in files/upload/correct_file_name.ext but this file is only ever around 1KB and opening it with Notepad shows something similar to this:

_method=POST&data%5B_Token%5D%5Bkey%5D=79b4dbf072ff36d1b027c0decdef0e24bccbd4b5&data%5BUser%5D%5Bavatar%5D=mum+contacts.CSV&data%5B_Token%5D%5Bfields%5D=a9e58d8f03bc68c109155f536700a665cb3df152%253A&data%5B_Token%5D%5Bunlocked%5D=avatar%257Cavatar%257Cavatar

Not sure how this happened

Ali1 commented 11 years ago

transit version 1.4.1 uploader version 4.3.1

milesj commented 11 years ago

Do your forms and inputs have type = file?

Ali1 commented 11 years ago

My form didn't! Thanks mate

milesj commented 11 years ago

No problem, I've run into the same problem myself many times!