Problem Statement
Why can file uploads be dangerous, and how can they be secured?
Explanation
If not validated, malicious files like PHP shells can be uploaded and executed. To secure uploads, restrict file types, limit file sizes, rename files on upload, and store them outside the public web root.
Practice Sets
This question appears in the following practice sets:
