What is the role of the Content-Disposition header in file downloading?
- Indicates the file size
- Manages file encryption
- Prompts for download
- Specifies the file type
The Content-Disposition header plays a crucial role in file downloading by prompting the browser to download the file instead of displaying it. It specifies the disposition of the content, ensuring a proper download experience for users.
Loading...
Related Quiz
- For monitoring changes to the session's attribute list, which listener interface is suitable?
- What is the difference between context and init parameters in servlet configuration?
- What is the primary interface for handling HTTP requests in Java servlets?
- Which XML element is used to declare a filter in a web application's deployment descriptor?
- In a chat application using WebSockets, when a message is sent to a closed connection, what happens and how should it be handled?