I am looking at how file uploads work in PHP.
When i upload a file, the $_FILES global says that the temp file name is /tmp/phpDFUMAz but this doesn’t exist.
If i check ini settings for upload_tmp_dir I can see the following:
upload_tmp_dir no value
What exactly is PHP doing here? It has given a temp file name to the uploaded file but that doesn’t exist on the server.
Temp files get deleted after the script that you uploaded them to is finished. The script that you uploaded them too needs to move the file out of the temp dir if you want to preserve it for later use.