Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: bakedjake

Message Too Old, No Replies

Uploading .zip files via http post

     
5:23 pm on Jan 31, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 8, 2002
posts:465
votes: 0


I created a php script to upload large files. It is mainly used for uploading large plain text directory listings. Today someone uploaded a .zip file and it worked but you cant open the .zip file. It changed to file size from around 300k to about 750k and made it unreadable. Is there somethign I have to do to make this work? The server is a Redhat Linux 8.0 box with apache 2.0 and the latest vers of php and mysql.
Thanks.
4:32 am on Feb 1, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 28, 2002
posts:492
votes: 0


Have you inspected the uploaded file with an editor to see if it has been encoded in some way.

Maybe you have seen in emails that some non-ascii characters are displayed as =XX, for example =0A for ascii 10, newline.

If for some reason the file has be subjected to some similar kind of binary to clear text encoding, that would explain the increase in size, including the order of magnitude of the increase.

Just a guess, though.

René