The php.net page on the
move_uploaded_file() function contains a User Contributed Note which says,
Security tips you must know before use this function :
First : make sure that the file is not empty.
I really cannot see how an empty file could be any more of a problem than a file that has either benign or malicious contents. Nor have I ever seen this advice before. However, since the note is highly upvoted, perhaps I may be missing something. So, can allowing empty files to be uploaded create any security vulnerabilities/issues or is this part of the advice pointless?