Here is a quick question,
Should I delete the tmp file of an uploaded file after I copy it and move it to where i want it?
Something like:
unlink($_FILES['tmp_name']);
Or is this unnecessary?
Here is a quick question,
Should I delete the tmp file of an uploaded file after I copy it and move it to where i want it?
Something like:
unlink($_FILES['tmp_name']);
Or is this unnecessary?
got it. Thanks for the help!
You can use inbuilt function also to move the uploaded file in php
bool move_uploaded_file ( string $filename, string $destination )
In either case it’s unnecessary:
If you move the file (instead of copying it), $_FILES[‘tmp_name’] points to a file location that no longer exists
If you copy the file, PHP cleans up the file as part of garbage collection at EOF.