error : Incorrect type of file. with .rar

See all posts Reply

error : Incorrect type of file. with .rar new!
by MiCk, 13 years, 6 months ago
Hello, i have a error with .rar file ... "error : Incorrect type of file."

.zip are fine ... bug or there is solution ? TY

system information
- class version : 0.30
- operating system : Linux
- PHP version : 5.2.5-pl1-gentoo
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 200M (209715200 bytes)
- 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 type detected as application/x-rar by UNIX file() command
- MIME validated as application/x-rar
source variables
- You can use all these before calling process()
file_src_name : nl.rar
file_src_name_body : nl
file_src_name_ext : rar
file_src_pathname : /tmp/phplycUUE
file_src_mime : application/x-rar
file_src_size : 48882 (max= 209715200)
file_src_error : 0
process file to upload/
- file size OK
- error: Incorrect type of file.
Reply
Re: error : Incorrect type of file. with .rar new!
by MiCk, 13 years, 6 months ago
sorry ...

just add in init

"application/x-rar",

there was only "application/x-rar-compressed"

thank youReply
Re: error : Incorrect type of file. with .rar new!
by colin, 13 years, 6 months ago
It will be added in the next release. Thanks.Reply