How to solve the problem of appended mime type in files uploaded with FINEUPLOADER tool when using Chrome or Firefox browser? It happens both for binary and text file... here below an example of uploaded text file.
------WebKitFormBoundaryCbkKYQSuaZj8PIIl
Content-Disposition: form-data; name="qqfile"; filename="test.txt"
Content-Type: application/octet-stream
This is the begin of my text file...
...
...
This is the end of my text file...
------WebKitFormBoundaryCbkKYQSuaZj8PIIl--
Thanks!
There is no issue here. The files are sent, by default, in multipart encoded requests. The file will be encased in a multipart boundary in the payload of this request, and the MIME type of the file will be specified as a parameter in the header of its multipart boundary.
You don't need to worry about any of this though, as there are libraries for every server side language in existence that parse multipart encoded requests. If you are using PHP, MPE request parsing is built into the language in fact.