Posted by:
ju2au
(---.itc.griffith.edu.au)
I have wamp 1.7.1 with Windows XP and NTFS file system.
I am trying to create a script which uploads a file to the server but the file won't show up in the temporary upload directory. I played around with Windows NTFS permissions but that doesn't seem to be the issue.
Let's say I get the following file after submitting the form:
$userfile = $_FILES["userfile"]["tmp_name"];
echo $userfile will give "C:\wamp\tmp\phpC7.tmp".
the method "is_uploaded_file($userfile)" returns true
But when I look in the c:\wamp\tmp\ directory, nothing is there or rather the temporary file "phpC7.tmp" doesn't appear. Below is the the rest of my code and php config. Any help is appreciated.
<form method="post" action="insert.php" enctype="multipart/form-data">
<input name="userfile" type="file">
<input type="submit" value="Submit">
</form>
My php.ini settings:
file_uploads = On
upload_tmp_dir = "C:\wamp\tmp"
upload_max_filesize = 2M