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.
system information - class version : 0.31 - operating system : Linux - PHP version : 5.4.0beta1 - GD version : 2.0.34 - supported image types : png 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 MAGIC path defaults to /usr/share/file/magic MIME type detected as application/octet-stream; charset=binary by Fileinfo PECL extension - MIME validated as application/octet-stream - Flash may be rewriting MIME as application/octet-stream - Try to guess MIME type from file extension (jpg): MIME type set to image/jpeg source variables - You can use all these before calling process() file_src_name : 46441_105380692856750_100001544593647_41557_257748_n.jpg file_src_name_body : 46441_105380692856750_100001544593647_41557_257748_n file_src_name_ext : jpg file_src_pathname : /tmp/phpLAQHAe file_src_mime : image/jpeg file_src_size : 115373 (max= 2097152) file_src_error : 0 process file to /kunden/homepages/10/d254907565/htdocs/public/images/covers/ - file size OK - file mime OK : image/jpeg - file name safe format - destination variables file_dst_path : /kunden/homepages/10/d254907565/htdocs/public/images/covers/ file_dst_name_body : 46441_105380692856750_100001544593647_41557_257748_n file_dst_name_ext : jpg - checking for auto_rename - destination file details file_dst_name : 46441_105380692856750_100001544593647_41557_257748_n.jpg file_dst_pathname : /kunden/homepages/10/d254907565/htdocs/public/images/covers/46441_105380692856750_100001544593647_41557_257748_n.jpg - 46441_105380692856750_100001544593647_41557_257748_n.jpg doesn't exist already - no image processing wanted - process OKReply
- class version : 0.31
- operating system : Linux
- PHP version : 5.4.0beta1
- GD version : 2.0.34
- supported image types : png 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
MAGIC path defaults to /usr/share/file/magic
MIME type detected as application/octet-stream; charset=binary by Fileinfo PECL extension
- MIME validated as application/octet-stream
- Flash may be rewriting MIME as application/octet-stream
- Try to guess MIME type from file extension (jpg): MIME type set to image/jpeg
source variables
- You can use all these before calling process()
file_src_name : 46441_105380692856750_100001544593647_41557_257748_n.jpg
file_src_name_body : 46441_105380692856750_100001544593647_41557_257748_n
file_src_name_ext : jpg
file_src_pathname : /tmp/phpLAQHAe
file_src_mime : image/jpeg
file_src_size : 115373 (max= 2097152)
file_src_error : 0
process file to /kunden/homepages/10/d254907565/htdocs/public/images/covers/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : /kunden/homepages/10/d254907565/htdocs/public/images/covers/
file_dst_name_body : 46441_105380692856750_100001544593647_41557_257748_n
file_dst_name_ext : jpg
- checking for auto_rename
- destination file details
file_dst_name : 46441_105380692856750_100001544593647_41557_257748_n.jpg
file_dst_pathname : /kunden/homepages/10/d254907565/htdocs/public/images/covers/46441_105380692856750_100001544593647_41557_257748_n.jpg
- 46441_105380692856750_100001544593647_41557_257748_n.jpg doesn't exist already
- no image processing wanted
- process OK