Forum Moderators: coopster & phranque

Message Too Old, No Replies

Uploading .zip files

         

RussellC

9:37 pm on Jan 30, 2003 (gmt 0)

10+ Year Member



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?

Thanks.

pendanticist

12:43 am on Jan 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there somethign I have to do to make this work?

I'm wondering if your host server has anything to do with how those extensions are handled once uploaded?

Pendanticist.

RussellC

3:07 am on Jan 31, 2003 (gmt 0)

10+ Year Member



I am using Redhat 8.0 with the latest versions of apache mysql and php. I can upload zip files fine via ftp but through submitting in http post it causes probs.

RussellC

2:39 pm on Jan 31, 2003 (gmt 0)

10+ Year Member



Anyone have any ideas..I just tried to upload a 5 MB zip file and it turned it into an 11 MB zip file...weird

pendanticist

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

WebmasterWorld Senior Member 10+ Year Member



I am using Redhat 8.0 with the latest versions of apache mysql and php. I can upload zip files fine via ftp but through submitting in http post it causes probs.

Have you tried posting your problem to Linux, Unix, and *nix like Operating Systems [webmasterworld.com]? Maybe they could help you since your problem seems to be more akin to an OS related problem than anything else.

I wish I could help more, but I know next to nothing about Redhat.

Pendanticist.

jatar_k

9:00 pm on Jan 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have done a lot of searching looking for a similar problem. I spent time looking through bugs.php.net and didn't find anything quite the same though there were problems with zip uploading.

I haven't had this problem and am not too sure what is going on. I would try some searches at <your favorite SE> to see what comes up.

RussellC

9:40 pm on Jan 31, 2003 (gmt 0)

10+ Year Member



I have been searching for about an hour reading up on this... It has probas with any binary file but it is ok with plain text files.

Ron_Carnell

9:57 am on Feb 1, 2003 (gmt 0)

10+ Year Member



FWIW, I have a similar program written in Perl, which is often used to upload (and unzip) zip files. It runs on Redhat 7.2 without a hitch.

One thing to possibly investigate would be whether your server is running mod_gzip as part of Apache, an HTTP Compression Module designed to save bandwidth by compressing files before they are sent to the browser for display. I would be a little surprised, but it's at least conceivable that gzip is trying (and obviously failing) to uncompress the zip file?