Hello, with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying to add a constraint that limits the width and size... I've been reading the manual (don't understand the error_messages)... and can't figure it out... this is what I have so far:
<? $base_img_dir = "images/"; $uniq = uniqid(""); $extension=".jpg"; $filename = $base_img_dir.$uniq.$extension; if(isset( $Submit )) { if ($_FILES['imagefile']['type'] == "image/pjpeg"){ move_uploaded_file($_FILES["imagefile"]["tmp_name"], $filename) or die ("Could not copy"); echo ""; echo "Copy Done...."; } else { echo ""; echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")"; } } I know there's some easy way to do it... thanks a lot, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php