[SOLVED]Upload problem, filename could be the source :)
Posted: Sat Jun 12, 2004 6:18 pm
Can anypne tell me what is wrong with this script, I'm trying to upload a file but, the script tells me that the name of the file is not correct - not valid. I'm hosting apache on winXP.
Input from a form:
NOTE = the script is not mine, its free to use, so whats the problem.
Thanks ahead.
feyd enabled bbcode and fixed position of [php.] tag start..
Input from a form:
Code: Select all
<FORM ACTION="upload.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="file" NAME="img1">
<INPUT TYPE="submit" NAME="submit3" VALUE="Upload File">
</FORM>
<?php
if ($img1_name != "")
{
@copy("$img1" , "users/$img_name")
or die("Couldn't uplad your file");
}
else
{
die("No file specified");
}
?>Thanks ahead.
feyd enabled bbcode and fixed position of [php.] tag start..