DJ_AM_Juicebox
asked on
deleting temporary files
Hi,
I have a file field in a <form>, so the user can upload a file. As soon as the user submits the form, the file is uploaded as I understand it to a temporary directory on my server. I can find out that temp name in the $_FILES array. Is it uo to me to delete that temporary file if I don't want it anymore? I'm basically doing:
1) user submits file
2) i copy it to a specific directory on the server
3) now do I have to delete the temp file or does it somehow get removed automatically for me?
Thanks
I have a file field in a <form>, so the user can upload a file. As soon as the user submits the form, the file is uploaded as I understand it to a temporary directory on my server. I can find out that temp name in the $_FILES array. Is it uo to me to delete that temporary file if I don't want it anymore? I'm basically doing:
1) user submits file
2) i copy it to a specific directory on the server
3) now do I have to delete the temp file or does it somehow get removed automatically for me?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed."