I'm trying to get an image fule upload script with the following:
$dest= "/home/httpd/vhtdocs/iain/mill8/newsmedia/";
print "$userfile_name";
print"$userfile_type";
copy ($userfile , "$dest/$userfile_name");
- the file is being written to the folder and no errors are being thrown up- but it is always 0 bytes big.
I've looked through the forums and php.net help but can't find any solutions.
The files themselves are definatly bigger than 0k.
Here's the form:
print( " <FORM ENCTYPE=\"multipart/form-data\" ACTION=\"imageadmin.php?action=upload\" METHOD=\"POST\" class = \"newshead\">\n" );
print("<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"200000\">");
print( "Send this file:<br> <br><INPUT NAME=\"userfile\" TYPE=\"file\">\n<br><br><br>" );
print( "<INPUT TYPE=\"submit\" VALUE=\"Send File\">\n" );
print( "</FORM>\n" );
Any help much appreciated-
Iain.