I want to upload a CSV file and use it just for import content. Is necessary for this to use move_uploaded_file to move temp file? Or should I just use temp file uploaded without moving it in a specific folder? Which will be the best practice?
Share
There is no need to move the file around if you do not need to keep it longer than the request:
from POST method uploads
However if you want to move the uploaded file around, you should use
move_uploaded_file()for that operation.