Where do POSTed files go?
Posted: Wed Mar 10, 2010 7:11 pm
I am extending an existing PHP program that POSTs a file from the user's PC to a Linux server. The problem is I can't find where on the server the uploaded file is stored. I need to find the file so I can operate on it.
The initial PHP page uses this code to POST the file:
The upload.php file receives the POST and the stores the name of the file in $_FILES['thefile']['name'].
Further, $_FILES['thefile']['tmp_name'] contains /tmp/phpRCaphU. The problem I have is that there is no such file as /tmp/phpRCaphU.
Can any suggest where I may find the POSTed file?
The initial PHP page uses this code to POST the file:
Code: Select all
<form method="post" enctype='multipart/form-data' action="upload.php">
<input type=file name=thefile>
<input type="submit" VALUE="Upload" name="Upload">
</form>Further, $_FILES['thefile']['tmp_name'] contains /tmp/phpRCaphU. The problem I have is that there is no such file as /tmp/phpRCaphU.
Can any suggest where I may find the POSTed file?