troubleshooting Question

deleting temporary files

Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox asked on
PHP
2 Comments1 Solution218 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros