Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I force a download?



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

Post New Answer

More HTML DHTML Interview Questions

How can you apply javascript to a web page?

0 Answers  


What is a self closing tag?

0 Answers  


Should I end my urls with a slash?

0 Answers  


What is the main function of <pre> tag in html?

0 Answers  


How do you create Drop Down Combos in HTML ?

1 Answers   Microsoft,


What other advantages does html5 have?

0 Answers  


What is difference between coding and programming?

0 Answers  


What is viewport html?

0 Answers  


In an html page form I have one button which makes us to open a new page in 15 seconds. How will you do that?

0 Answers  


What is the current version of edge?

0 Answers  


List out the page structure elements of html5.

0 Answers  


What does a href tag mean?

0 Answers  


Categories