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.
file not uploaded to the wanted location Error: MIME type can't be detected. file not uploaded to the wanted location Error: MIME type can't be detected. do another test
system information - class version : 0.30 - operating system : WINNT - PHP version : 5.2.3 - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 2M (2097152 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 not availabled - Checking MIME type with mime.magic file (mime_content_type()) mime_content_type() is not available - Checking MIME type with getimagesize() getimagesize() failed - MIME type detected as by browser - Try to guess MIME type from file extension (rar): MIME type set to - MIME type couldn't be detected! () source variables - You can use all these before calling process() file_src_name : 2checkout.rar file_src_name_body : 2checkout file_src_name_ext : rar file_src_pathname : C:\WINDOWS\TEMP\php27D.tmp file_src_mime : file_src_size : 3742 (max= 2097152) file_src_error : 0 process file to test\ - file size OK - error: MIME type can't be detected. process file to test\ - file size OK - error: MIME type can't be detected. cleanup - delete temp file C:\WINDOWS\TEMP\php27D.tmpReply
file not uploaded to the wanted location
Error: MIME type can't be detected.
file not uploaded to the wanted location
Error: MIME type can't be detected.
do another test
system information
- class version : 0.30
- operating system : WINNT
- PHP version : 5.2.3
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 2M (2097152 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 not availabled
- Checking MIME type with mime.magic file (mime_content_type())
mime_content_type() is not available
- Checking MIME type with getimagesize()
getimagesize() failed
- MIME type detected as by browser
- Try to guess MIME type from file extension (rar): MIME type set to
- MIME type couldn't be detected! ()
source variables
- You can use all these before calling process()
file_src_name : 2checkout.rar
file_src_name_body : 2checkout
file_src_name_ext : rar
file_src_pathname : C:\WINDOWS\TEMP\php27D.tmp
file_src_mime :
file_src_size : 3742 (max= 2097152)
file_src_error : 0
process file to test\
- file size OK
- error: MIME type can't be detected.
process file to test\
- file size OK
- error: MIME type can't be detected.
cleanup
- delete temp file C:\WINDOWS\TEMP\php27D.tmp