Which of the following is a common practice to secure file uploads?
- Allowing any file type without restrictions
- Limiting the file types that can be uploaded
- Running file uploads with elevated server privileges
- Storing uploaded files in a public directory
A common practice to secure file uploads is to limit the types of files that can be uploaded. This prevents the upload of potentially harmful file types and adds an additional layer of security. Proper validation and server-side checks should be implemented to enforce this restriction.
Loading...
Related Quiz
- The ________ method in CodeIgniter is used for adding default data during seeding.
- In secure form validation, ________ tokens are often used to verify the authenticity of the form submission.
- Which Query Builder method in CodeIgniter is used to join two tables?
- In CodeIgniter, which method is recommended for sending form data to a view?
- Which feature of CodeIgniter simplifies the handling of complex XML structures?