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 se
Use move_uploaded_file(file, path)
, specify the file and the path where you want to store the file.
A copy of that file is created and gets stored.
Note that the file is saved binary in $_FILES["file"]["tmp_name"]
, so you may open it maybe with file_get_contents
if it is an image or something like this...