Also you can use is_uploaded_file and move_uploaded_file to ensure you only modify the freshly uploaded file.
You can also use UPLOAD_ERROR_OK, as sometimes a file upload only partially completes.
Exactly! This article made me wonder why they aren't even mentioned when they're the standard way to handle file uploads in PHP.
P.S. Is it possible that the comment form does not even work in Firefox?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Exactly! This article made me wonder why they aren't even mentioned when they're the standard way to handle file uploads in PHP.
P.S. Is it possible that the comment form does not even work in Firefox?