← 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?
- A.Compresses the file
- B.Makes the browser download the file instead of opening it in the page
- C.Checks the file for malware
- 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 →