Send this file:

Resize Options: No resize Width to 640 Width to 800
[Check uploaded files] 3||filesize($file_tmp)>1024*1024) die('Invalid file type or over 1M'); $ext=image_type_to_extension($type); $cleaned_name=md5_file($file_tmp).$ext; if(file_exists("$filedir/$cleaned_name")) die("A file named $cleaned_name already exists, rename yours and try again."); print "You just uploaded which was a {$_FILES['docupload']['type']}, and of size {$_FILES['docupload']['size']}
"; print "
The link to your picture is $cleaned_name"; print "

[Upload another picture]"; move_uploaded_file($file_tmp, $filedir.'/'.$cleaned_name); $writefile=$filedir.'/'.$cleaned_name; if ($_POST['resize']<>"None") { if ($_POST['resize']=="640") { $resize_str="640x480"; } else if ($_POST['resize']=="800") { $resize_str="800x600"; } else { die("No thanks."); } $cmd="$convert -size {$width}x{$height} $writefile -resize $resize_str $writefile"; exec($cmd); } } ?>