How do I force a download?
Answer / guest
When someone downloads a document, the server tells the
browser what type of file it is. The browser then picks the
appropriate helper application, or displays it himself. If
the server doesn't know the file type, it tells the browser
that the file is "text/plain", or just plain text. You will
have to ask your server admin to configure this particular
file with the MIME type you want.
"Forcing" a download is not what you are supposed to do.
After all, what is more convenient than having the proper
application started when I download a particular file?
Browsing through a download directory can be quite a pain.
And most browsers allow the user to download to disk if they
want to.
If the file must be saved to disk, as there is absolutely NO
other way to handle it, the MIME type should be
"application/octet-stream".
Is This Answer Correct ? | 0 Yes | 1 No |
How is xhtml better than html?
Explain numbered lists in html?
Why to use pattern attribute in html5?
How to create and access sessionstorage object in html5?
What is onclick in html?
Describe in brief HTML Lists?
What is the main purpose of html?
What is a link rel?
What are the different types of <!doctype> that are available?
Why we use 'clear' in html?
Is html a framework?
What is semantic elements in html5? List some semantic elements