LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

Uploaded file receiving headers #167

Open joaoricardorm opened 8 years ago

joaoricardorm commented 8 years ago

I'm uploading txt files with this plugin. On local server (Windows and PHP) the uploaded file is exactly equals the sent file. But on web server (Linux) large files (>10 MB) are save with headers and footer like this:

------WebKitFormBoundaryvQsak8lJJC0yDdVB
Content-Disposition: form-data; name="uploadfile"; filename="aaaaaaaaa_plano_v001.txt"
Content-Type: text/plain

.....CONTENT HERE.....

------WebKitFormBoundaryvQsak8lJJC0yDdVB--

I've searched for a solution with no success. The closest thing I found is this post, but I can't get it to work: Manually parse raw HTTP data with PHP [http://www.chlab.ch/blog/archives/webdevelopment/manually-parse-raw-http-data-php]

Does anyone know something about this behavior and how to disable it, or read file without that headers and footer?

Thank you.