When accepting user file uploads, one should never trust the file's ________ as it can be easily spoofed.
- Extension
- Size
- Content-Type
- Location
Trusting the file extension is risky, as attackers can easily change it. It's better to verify the file's content and use other security measures.
Loading...
Related Quiz
- You are writing a PHP script and you need to collect data sent in the URL's query string. How would you do this using the $_GET superglobal?
- How can you implement caching in PHP to improve performance? Discuss different caching mechanisms available in PHP.
- You need to create a MySQL table, execute some queries, and then close the connection in your PHP script. How would you do this?
- What is the function func_num_args() used for?
- How do you execute a query in a MySQL database using PHP?