Reply to Incorrect type of file - detected as application/x-empty

Incorrect type of file - detected as application/x-empty new!
by James, 9 years, 2 months ago
Why is this happening?

Also, is it not possible to force the script to try to handle it as the filetype of the name extension, in cases where it fails detecting mime?

system information
- class version : 0.32
- operating system : Linux
- PHP version : 5.3.3-7+squeeze25
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : /home/:/tmp/:/usr/lib/php5/:/usr/share/php:/usr/local/php5-suphp/:/usr/bin/:/usr/local/bin/:/bin/
- upload_max_filesize : 128M (134217728 bytes)
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path will not be used
MIME type detected as application/x-empty; charset=binary by Fileinfo PECL extension
- MIME validated as application/x-empty
source variables
- You can use all these before calling process()
file_src_name : IMG_3579.JPG
file_src_name_body : IMG_3579
file_src_name_ext : jpg
file_src_pathname : /tmp/php0oY6pm
file_src_mime : application/x-empty
file_src_size : -195 (max= 134217728)
file_src_error : 0
process file to /home/1/w/xxx/
- file size OK
- error: Incorrect type of file.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important