When a file is uploaded using an HTML page to the server (I’m using PHP as backend scripting language and Apache web server ) using POST method, the programmer is supposed to move the uploaded file from its temporary location to some other location using move_uploaded_file(). However, if due to some reason the file is not moved, what happens to the uploaded file? Does it remain there forever, or is the file deleted as soon as the script exits ?
Share
From PHP DOC
It does not really matter if it is moved or not