I am using XAMPP on Windows. By printing $_FILES["file"]["tmp_name"], it seems that the temporary file was saved at C:\xampp\tmp\phpABCD.tmp. But I cannot see it on the filesystem of the server. However, the file can be moved or copied via move_uploaded_file(), rename(), or copy(). So where does PHP actually save temporary files during uploading?
I am using XAMPP on Windows. By printing $_FILES[file][tmp_name] , it seems that the
Share
It saves it at the path specified in
$_FILES["file"]["tmp_name"], but deletes it after the script is done executing. It’s up to you to move the file elsewhere if you want to preserve it.