here is my code ... I thought this might be useful to post; also, I tried to view the file with the browser & open it up with xview & gimp
<HEAD>
<title>php upload image</title>
</HEAD>
<?php
$file_dir ="/httpd/html/tester/uploads";
$file_url ="http://domainhere/tester/uploads/";
if ( isset( $fupload )) {
print "path: $fupload<br>\n";
print "name: $fupload_name<br>\n";
print "size: $fupload_size bytes<br>\n";
print "type: $fupload_type<p>\n\n";
if (( $fupload_type == "image/gif") || ($fupload_type == "image/jpg"))
{
copy ( $fupload, "$file_dir/$fupload_name") or die ("could not coyp");
print "<img src=\"$file_url/$fupload_name\"><p>\n\n";
}
}
?>
<BODY>
<FORM ENCTYPE="multipart/form-data" ACTION="<?php print $PHP_SELF ?>" method="post">
<INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="100000">
<INPUT TYPE="FILE" NAME="fupload"><BR>
<INPUT TYPE="SUBMIT" VALUE="send">
</FORM>
</BODY>