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.
Got it ! system information - class version : 0.29 - operating system : WINNT - PHP version : 5.2.10 - GD version : 2.0.34 - supported image types : png jpg gif bmp - open_basedir : no restriction - language : de_DE 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 application/octet-stream by browser - MIME validated as application/octet-stream - Flash may be rewriting MIME as application/octet-stream - Try to guess MIME type from file extension (exe): doesn't look like anything known source variables - You can use all these before calling process() file_src_name : AirFranceTravelDeskFR.exe file_src_name_body : AirFranceTravelDeskFR file_src_name_ext : exe file_src_pathname : D:\www\phpTemp\php9825.tmp file_src_mime : application/octet-stream file_src_size : 3327918 (max= 83886080) file_src_error : 0 process file to modules/Samples/files/SA898/\ - file size OK - file mime OK : application/octet-stream - file name safe format - destination variables file_dst_path : modules/Samples/files/SA898/\ file_dst_name_body : AirFranceTravelDeskFR file_dst_name_ext : exe - no image operation, keep extension - no auto_rename if same filename exists - destination file details file_dst_name : AirFranceTravelDeskFR.exe file_dst_pathname : modules/Samples/files/SA898/\AirFranceTravelDeskFR.exe - no overwrite checking - no image processing wanted - process OKReply
system information
- class version : 0.29
- operating system : WINNT
- PHP version : 5.2.10
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : de_DE
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 application/octet-stream by browser
- MIME validated as application/octet-stream
- Flash may be rewriting MIME as application/octet-stream
- Try to guess MIME type from file extension (exe): doesn't look like anything known
source variables
- You can use all these before calling process()
file_src_name : AirFranceTravelDeskFR.exe
file_src_name_body : AirFranceTravelDeskFR
file_src_name_ext : exe
file_src_pathname : D:\www\phpTemp\php9825.tmp
file_src_mime : application/octet-stream
file_src_size : 3327918 (max= 83886080)
file_src_error : 0
process file to modules/Samples/files/SA898/\
- file size OK
- file mime OK : application/octet-stream
- file name safe format
- destination variables
file_dst_path : modules/Samples/files/SA898/\
file_dst_name_body : AirFranceTravelDeskFR
file_dst_name_ext : exe
- no image operation, keep extension
- no auto_rename if same filename exists
- destination file details
file_dst_name : AirFranceTravelDeskFR.exe
file_dst_pathname : modules/Samples/files/SA898/\AirFranceTravelDeskFR.exe
- no overwrite checking
- no image processing wanted
- process OK