Incorrect type of file

See all posts See thread Reply

Re: Incorrect type of file new!
by Gigi, 14 years, 8 months ago
Hello,

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 meReply
Re: Incorrect type of file new!
by colin, 14 years, 8 months ago
Just add "application/x-zip" in the list of allowed MIME types (around line 2070)Reply