Problem Statement
Explain security measures for file uploads in PHP.
Explanation
Always check the MIME type and extension, limit maximum file size, rename uploaded files, and store them outside the web root. Never trust the file name sent by the user to avoid code injection.
