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 am having the same problem in my application. Your help is really appreciated.
This is my log:
- class version : 0.30 - operating system : Linux - PHP version : 5.2.17 - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 50M (52428800 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 UNIX file() command failed - Checking MIME type with mime.magic file (mime_content_type()) MIME type detected as text/plain by mime_content_type() - MIME validated as text/plain source variables - You can use all these before calling process() file_src_name : child.png file_src_name_body : child file_src_name_ext : png file_src_pathname : /tmp/phpVxcgAL file_src_mime : text/plain file_src_size : 36177 (max= 52428800) file_src_error : 0Reply
I am having the same problem in my application.
Your help is really appreciated.
This is my log:
- class version : 0.30
- operating system : Linux
- PHP version : 5.2.17
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 50M (52428800 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
UNIX file() command failed
- Checking MIME type with mime.magic file (mime_content_type())
MIME type detected as text/plain by mime_content_type()
- MIME validated as text/plain
source variables
- You can use all these before calling process()
file_src_name : child.png
file_src_name_body : child
file_src_name_ext : png
file_src_pathname : /tmp/phpVxcgAL
file_src_mime : text/plain
file_src_size : 36177 (max= 52428800)
file_src_error : 0