faqts : Computers : Programming : Languages : PHP : Common Problems : File Uploading

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 18 people (50%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

When uploading binary files, some bytes are become corrupted, but file size isnt changing, why?

Jan 27th, 2000 14:39
Manuel Lemos, Nathan Wallace, Michael Berndt, Dmitry Jo,


This is a known PHP bug that shows when a client send unexpected
headers in the upload HTTP request. See this report:
http://bugs.php.net/bugs.php3?id=2944
Manuel Lemos
---
The same thing happened to me when trying to do the file upload through
a Proxy.  Funnily enough, the Proxy puts his header at the start and
cuts the same amount of bytes from the end of the uploaded file.  So the
file size is still correct but the actual data is rubbish.  I solved
this Problem when by not using a Proxy (option direct connection to the
internet in your browser).