Trouble with uploaded files in temp directory
Posted by: ju2au (---.itc.griffith.edu.au)
Date: June 21, 2007 08:36AM

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

Options: ReplyQuote
Re: Trouble with uploaded files in temp directory
Posted by: mirlila (---.b.astralnet.ro)
Date: July 03, 2007 01:36PM

Hello,
Did you fix this problem? I have this problem, too. And i really don't know how would I solve it.
I really appreciate if you would write teh solution as a reply to this message.
Thanks,
Traian

Options: ReplyQuote


Sorry, only registered users may post in this forum.