🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Secure File Uploads: all 10 questions

Quiz: Secure File Uploads · Question 9 of 10

What does the header Content-Disposition: attachment do?

What does the header Content-Disposition: attachment do?

  1. A.Compresses the file
  2. B.Makes the browser download the file instead of opening it in the page
  3. C.Checks the file for malware
  4. D.Encrypts the file during download
Answer & explanation

Correct answer: Makes the browser download the file instead of opening it in the page

Opening a malicious HTML or SVG file inside your site is what makes it dangerous.

Can you get the rest right without peeking?

Take the timed Quiz: Secure File Uploads quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →