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
$Upload = new Upload($_FILES['image_field'], 'fr_FR'); if ($Upload->uploaded) { $Upload->file_new_name_body = 'image_resized'; $Upload->image_resize = true; $Upload->image_x = 100; $Upload->image_ratio_y = true; // $Upload->process( URL . 'public/files/'); $Upload->process(); if ($Upload->processed) { echo 'image resized'; $Upload->clean(); } else { echo 'error : ' . $Upload->error; } }
How to resolve this error?
Warning: Undefined array key "form_field" in