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.
more info about the class
See all posts Reply
$handle->mime_check = true; $handle->allowed = array('image/*'); $handle->forbidden = array('application/*'); $handle->file_max_size = '102400'; $upload->image_resize = true; $upload->image_x = 124; $upload->image_ratio_y = true; $handle->image_convert = 'jpg'; $upload->process('upload'); if ($upload->processed) {...
Resizing, but not restrict out of image files, and not rename, and not converting to the jpg.
Can anyone tell me why?
Besides, if something doesn't work, output the log of the class, and you will be able to see exactly what the class does...