Browser not writing $_FILES['..']['tmp_name']?
Posted: Wed Nov 29, 2006 9:09 pm
Hey All,
Got sort of a weird problem here. I've wirtten my own file upload class file but Ive been finding that my browser (Firefox 1.5 on Linux) is not sending the tmp_name or my script just isnt recieving it.
Im accessing the $_FILES array correctly and using move_uploaded_file() with an absolute path, everything is normal there but here's the print_r:
The path at the top is my upload dir + file
And the upload form:
Thanks
Got sort of a weird problem here. I've wirtten my own file upload class file but Ive been finding that my browser (Firefox 1.5 on Linux) is not sending the tmp_name or my script just isnt recieving it.
Im accessing the $_FILES array correctly and using move_uploaded_file() with an absolute path, everything is normal there but here's the print_r:
Code: Select all
locahost/File Upload/upload/images.zip
Array
(
[file] => Array
(
[name] => images.zip
[type] =>
[tmp_name] =>
[error] => 2
[size] => 0
)
)And the upload form:
Code: Select all
<form enctype="multipart/form-data" action="upload.php" id="form" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="3000" />
File: <input type="file" name="file" size="50" /><br />
<a href='javascript:void(0)' onclick="window.open('style/emailhelp.htm', '')">Email (Optional)</a>: <input type='text' name='email' id='email' size='50' /><br />
By uploading your file, you agree to our <a href="docs.php?doc=tos">terms of service</a>. <br /><input type="submit" value="Upload" id="upload" /></form>