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 : WINNT - PHP version : 4.4.7 - GD version : 2.0.28 - 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() MIME type detected as image/jpeg by PHP getimagesize() function - MIME validated as image/jpeg source variables - You can use all these before calling process() file_src_name : beach.jpg file_src_name_body : beach file_src_name_ext : jpg file_src_pathname : C:\WINNT\TEMP\php809.tmp file_src_mime : image/jpeg file_src_size : 1800554 (max= 2097152) file_src_error : 0 - source file is an image image_src_x : 2592 image_src_y : 3872 image_src_pixels : 10036224 image_src_type : jpg image_src_bits : 8 process file to test2\ - file size OK - file mime OK : image/jpeg - file name safe format - destination variables file_dst_path : test2\ file_dst_name_body : beach file_dst_name_ext : jpg - no auto_rename if same filename exists - destination file details file_dst_name : beach.jpg file_dst_pathname : test2\beach.jpg - no overwrite checking - attempting to use a temp file: file created temp file is: test2\8ff7a42bcd5b5433c46ac8870f1614b2.jpg - the file is not an image! - no image processing wanted - error: Error copying file on the server. copy() failed.Reply
system information
- class version : 0.31
- operating system : WINNT
- PHP version : 4.4.7
- GD version : 2.0.28
- 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()
MIME type detected as image/jpeg by PHP getimagesize() function
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
file_src_name : beach.jpg
file_src_name_body : beach
file_src_name_ext : jpg
file_src_pathname : C:\WINNT\TEMP\php809.tmp
file_src_mime : image/jpeg
file_src_size : 1800554 (max= 2097152)
file_src_error : 0
- source file is an image
image_src_x : 2592
image_src_y : 3872
image_src_pixels : 10036224
image_src_type : jpg
image_src_bits : 8
process file to test2\
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : test2\
file_dst_name_body : beach
file_dst_name_ext : jpg
- no auto_rename if same filename exists
- destination file details
file_dst_name : beach.jpg
file_dst_pathname : test2\beach.jpg
- no overwrite checking
- attempting to use a temp file: file created
temp file is: test2\8ff7a42bcd5b5433c46ac8870f1614b2.jpg
- the file is not an image!
- no image processing wanted
- error: Error copying file on the server. copy() failed.