Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload file

Status
Not open for further replies.

tube2k4

Programmer
Jul 12, 2005
2
SE
HI,
Om having a problem uploading a file with a form and php. Im testing the script they´re using on php.net but it doesn´t work for me.

when im checking the $_FILES array its empty, but the $_POST['myfile'] exists.
I´ve checked the php.ini and the upload_file is on and the upload dir is writable.

Im using PHP5 and apache2 on windows xp pro

need help, please! :)

regards,
Rob
 
We would need to see your form. Do you have the encoding attribute specified in the form tag? That seems like a possible culprit.
 
<form enctype="multipart/form-data" action="upload.php" method="POST">
Image: <input name="imgfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
 
can u give u some php code too???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top