Error: Incorrect type of file.

See all posts Reply

Error: Incorrect type of file. new!
by Kit, 13 years ago
It works on my localhost, and I copy all files to webhosting,
it works for the first 2 months. But now I always receive this error when upload images. See log as below.

Please help.

Large Image Not Uploaded
Error: Incorrect type of file.
Thumbnail not created and not uploaded
Error: Incorrect type of file.
system information
- class version : 0.28
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- 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-empty
MIME type detected as application/x-empty by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : 20110517114814CD.jpg
file_src_name_body : 20110517114814CD
file_src_name_ext : jpg
file_src_pathname : /tmp/phpTJuhVc
file_src_mime : application/x-empty
file_src_size : -9 (max= 20971520)
file_src_error : 0
process file to advimages/
- file size OK
- error: Incorrect type of file.
process file to advimagesthumb/
- file size OK
- error: Incorrect type of file.
cleanup
- delete temp file /tmp/phpTJuhVc
Reply
Re: Error: Incorrect type of file. new!
by colin, 13 years ago
It looks like the UNIX file command returns an incorrect MIME type application/x-empty. Check with your host why the command is broken.Reply