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
$MyObject = new upload($_FILES['archive_image']); if ($MyObject->uploaded) { $MyObject->file_new_name_body = "imagen_contenido"; $MyObject->file_overwrite = true; $MyObject->file_auto_rename = false ; $MyObject->image_convert = 'jpg'; $MyObject->allowed = array('image/jpeg','image/jpg','image/gif','image/png'); $archive_image_sended= "imagen_contenido.jpg"; $MyObject->image_resize = true; $MyObject->image_x = 580; $MyObject->image_ratio_y = true; $MyObject->process('/home/***********/resources/22'); if ($MyObject->processed) { echo 'image resized'; $MyObject->clean(); } else { echo 'error : ' . $MyObject->error; } }
$MyObject->allowed = array('image/jpeg','image/pjpeg','image/jpg','image/gif','image/png');
the form is xhtml
the code:
'image/pjpeg' upload type is the problem in ie
thanks for the quick response