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 see. So basically, the images are uploaded, but not resized. It is because the file is not detected as an image by the class. This happens when you upload via Flash, which stupidely rewrites all MIME types to application/octet-stream
I have released an experimental version to fully support Flash uploaders. Check out this news post. This version is not perfect security-wise, but at least it works.Reply
system information
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : /var/httpdocs:/tmp
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- source variables
file_src_name : fail.JPG
file_src_name_body : fail
file_src_name_ext : jpg
file_src_pathname : /tmp/phpZTI7VP
file_src_mime : application/octet-stream
file_src_size : 414549 (max= 2097152)
file_src_error : 0
process file to images/v/
- file size OK
- file mime OK : application/octet-stream
- new file name ext : jpg
- new file name body : tn2970d74c1dcdf58790d74747693e08e7
- file name safe format
- destination variables
file_dst_path : images/v/
file_dst_name_body : tn2970d74c1dcdf58790d74747693e08e7
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : tn2970d74c1dcdf58790d74747693e08e7.jpg
file_dst_pathname : images/v/tn2970d74c1dcdf58790d74747693e08e7.jpg
- tn2970d74c1dcdf58790d74747693e08e7.jpg doesn't exist already
- no image processing wanted
- process OK
process file to images/v/
- file size OK
- file mime OK : application/octet-stream
- new file name body : 2970d74c1dcdf58790d74747693e08e7
- file name safe format
- destination variables
file_dst_path : images/v/
file_dst_name_body : 2970d74c1dcdf58790d74747693e08e7
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 2970d74c1dcdf58790d74747693e08e7.jpg
file_dst_pathname : images/v/2970d74c1dcdf58790d74747693e08e7.jpg
- 2970d74c1dcdf58790d74747693e08e7.jpg doesn't exist already
- no image processing wanted
- process OK
I have released an experimental version to fully support Flash uploaders. Check out this news post. This version is not perfect security-wise, but at least it works.