html - How can I use a link to open file automatically instead of showing open save dialog? -
I am trying to open a PPT file. I do not want to show the save as dialogue, instead I just want to open the click immediately on the file. How can this be done?
You have to keep two things in mind:
-
HTTP Headers - If any- should not be set to
inline
,attachments
Later, the client will actually be forced to display the Save As conversation. -
The HTTP header should have a mime type that is recognized by the client, a PPT file that is usually
inline
and the browser does not actually use it Know what to do with it (i.e. the application type or extension does not have any application with the built-in platform / OS), it will open save as
You use such tools Rke feedback can debug header. You can modify the response header in the server side code and / or the webserver configuration. If you tell which language and / or webserver are using, then we can offer more specific solutions.
Comments
Post a Comment