Zip upload problem-Can /tmp dir path be changed? Debug info.
|
athertop
Joined: 2003-08-06
Posts: 38 |
Posted: Wed, 2003-08-06 11:08
|
|
I am getting an error when trying to upload Zip files. I would appreciate any help as I have almost hit a stop with this. I have seen an identical problem reported in the following post, but the fix here didn't work for me: Individual files upload no problem, it's just zips I get the problem with. I have: In debug mode, I get the following when trying to upload a zip file: **********Begin************* Executing: /homepages/19/d42267495/htdocs/bin/unzip/zipinfo -Z -1 /tmp/php1rS8O4 Results: ; see README for details. Usage: unzip [-Z] [-opts[modifiers]] file[.zip]
Default action is to extract files in list, except those in xlist, to exdir; file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage). -p extract files to pipe, no messages -l list files (short format) modifiers: -q quiet mode (-qq => quieter) Error messages: Status: 0 (expected 0) /homepages/19/d42267495/htdocs/bin/unzip/unzip -j -o /tmp/php1rS8O4 " unzip data1 -x joe => extract all files except joe from zipfile data1.zip" -d /homepages/19/d42267495/htdocs/forum/tmp Results: Error messages: Status: 11 (expected 0)Error: Archive: /tmp/php1rS8O4 /homepages/19/d42267495/htdocs/bin/unzip/zipinfo -Z -1 /homepages/19/d42267495/htdocs/forum/tmp/ unzip data1 -x joe => extract all files except joe from zipfile data1.zip Error messages: Status: 0 (expected 0) The previous post to which I refer suggested changing util.php which runs the zipinfo command with relevent switches. I have done this hence the switches -Z -1 being shown above. Either way (-1 or -Z -1) I get the same error. I am thinking that maybe the problem is that I do not have access to the /tmp directory on the server. Is it possible to re-configure gallery to use a different directory, maybe one in my own web server path? BTW - I have already created a working tmp directory in my own server with 777 permissions, and it is specified in config.php - It is not this temp directory to which I refer, it is /tmp which zipinfo and unzip try to use, with no appparent way of configuring gallery to use a different path. It looks like gallery uploads the file into /tmp and names it with a random name (php1rS8O4.zip above), then unzip tries to unpack the zip into my own tmp directory as specified in config.php. Can the first /tmp path be changed by hacking the code in any way? Thanks in advance, Paul |
|
