uploading zip files problem

btezcan

Joined: 2002-08-28
Posts: 3
Posted: Wed, 2002-08-28 02:07

Sorry gang I just can't figure it out. It might be a security problem, but I'm not sure. Any help is appreciated.

By the way the zip file is really small, 384 kb. and it is not a multi-part archive.

Here is the error I get under the debug is set to yes.

Processing status...

Executing:

/usr/bin/zipinfo -1 /tmp/phpTZzaD6

Results:
portrait-1.gif

Error messages:

Status: 0 (expected 0)
Executing:

/usr/bin/unzip -j -o /tmp/phpTZzaD6 "portrait-1.gif" -d /tmp

Results:
Archive: /usr/bin/unzip

Error messages:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: /usr/bin/unzip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of /usr/bin/unzip or
/usr/bin/unzip.zip, and cannot find /usr/bin/unzip.ZIP, period.

Status: 9 (expected 0)Error: Archive: /usr/bin/unzip- Adding portrait-1.gif
Warning: Unable to open '/tmp/portrait-1.gif' for reading: No such file or directory in /home/www/pelin/platform/fs_unix.php on line 24
:oops:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-08-28 05:44

Sounds like you may have an unusual version of unzip. Run "/usr/bin/unzip" and see what it says.

My working version says:
UnZip 5.50 of 17 February 2002, by Info-ZIP. Maintained by C. Spieler. Send
bug reports to the authors at

; see README for details.

You can download this from http://www.info-zip.org/pub/infozip/

 
btezcan

Joined: 2002-08-28
Posts: 3
Posted: Wed, 2002-08-28 15:42

Thanks Bharat,

I installed the new zipinfo and unzip. Now I get the following :sad:

I read one of your reply, saying none is the key, which is the size problem but this zip is really small.

Processing status...

Executing:

/usr/bin/zipinfo -1 /tmp/phpGHOguP

Results:
none

Error messages:

Status: 0 (expected 0) No images uploaded!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-08-29 05:28

Weird. Now zipinfo is failing. Put back the old zipinfo but leave the new unzip and see if that makes a difference.

 
btezcan

Joined: 2002-08-28
Posts: 3
Posted: Mon, 2002-09-02 18:04

:grin: Hi Bharat,

Thanks for all you support, the problem I was having is now resolved after rebooting the Linux box. There was nothing wrong with the unzip or zipinfo.

Weird, but worked.

Bulent