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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *