Ok, I just have a very simple test setup here:
http://www.nathanrutman.com/temp/sim...load-test.html
simple-upload-test.html:
Code HTML4Strict:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>PHP Form/Email Test</title> <style type="text/css"> label { display: block; } input, textarea { display: block; } </style> </head> <body> <form action="simple-exec.php" method="post"> <p><label>Attachment: <input type="file" name="thefile"></label></p> <p><input type="submit"></p> </form> </body> </html>
simple-exec.php:
Code PHP:<?php $fileatt = $_FILES['thefile']['tmp_name']; $fileatt_type = $_FILES['thefile']['type']; $fileatt_name = $_FILES['thefile']['name']; if (is_uploaded_file($fileatt)) { echo "file received"; } else { echo "file not received"; } ?>
It comes back, "file not received"...shouldn't this be fairly simple? :-)
Thanks!
-Nate





Bookmarks