class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I have same problem with .ZIP files Until 2-3 weeks it worked perfectly, but now not.
system information - class version : 0.28 - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : /home/cinema/:/usr/lib/php:/usr/local/lib/php:/tmp - language : en_GB source is an uploaded file - upload OK - file name OK determining MIME type - Checking MIME type with Fileinfo PECL extension Fileinfo PECL extension not available - Checking MIME type with UNIX file() command MIME returned as application/x-zip MIME type detected as application/x-zip by UNIX file() command source variables - You can use all these before calling process() file_src_name : G-Force.zip file_src_name_body : G-Force file_src_name_ext : zip file_src_pathname : /tmp/phpw5VEIT file_src_mime : application/x-zip file_src_size : 116112 (max= 6291456) file_src_error : 0 process file to ../storage/file/2009-09/ - file size OK - error: Incorrect type of file.
I have same problem with .ZIP files
Until 2-3 weeks it worked perfectly, but now not.
system information
- class version : 0.28
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : /home/cinema/:/usr/lib/php:/usr/local/lib/php:/tmp
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME returned as application/x-zip
MIME type detected as application/x-zip by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : G-Force.zip
file_src_name_body : G-Force
file_src_name_ext : zip
file_src_pathname : /tmp/phpw5VEIT
file_src_mime : application/x-zip
file_src_size : 116112 (max= 6291456)
file_src_error : 0
process file to ../storage/file/2009-09/
- file size OK
- error: Incorrect type of file.
Please help me