Re: Show "Save As" dialog
This question is for html/javascript... my friend got lost, sorry about that. Can anyone please show her the way, by moving her question to the right forum?
Re: Show "Save As" dialog
Re: Show "Save As" dialog
Thanks greatly appreciated. :)
Re: Show "Save As" dialog
thanks belle..
and thanks to u manavo11.. :blush:
any ideas?
ive been told that Content-Disposition = attachment could be the solution to my prob..still searching for valuable infos bout this one...but any inputs will be greatly greatly appreciated..
many thanks... :blush:
Re: Show "Save As" dialog
Do you have access to the server?
By adding a file type of a pdf and saying it' content type is of application/octet-stream,you can force the Save As dialog to appear when the user clicks on a link to a pdf.
Re: Show "Save As" dialog
deadeyes, could you give more detailed instructions because im having the same problem but dont really knwo much about servers.
Re: Show "Save As" dialog
Hi DaveBat
In IIS
Right click your websites
select properties form the context menu
From the dialog box select the HTTP Headers Tab
Down the bottom you'll see MIME Map
Press the File Types button
Press New Type button
Enter the extension "pdf"
Enter the content type "application/octect-stream"
ok
ok
apply
ok
Now from you website when you click a link to a pdf instead of it being displayed in the browser window the save as dialog appears.
HTH
Re: Show "Save As" dialog
Re: Show "Save As" dialog
Quote:
Originally Posted by DeadEyes
Do you have access to the server?
By adding a file type of a pdf and saying it' content type is of application/octet-stream,you can force the Save As dialog to appear when the user clicks on a link to a pdf.
hello deadeyes, thanks for the reply.
i actually ddnt need to change the IIS settings.
got it working by using the following (jst in case somebody's interested)
Code:
response.setHeader ("Content-Disposition", "attachment;filename=\"" + request.getParameter("file") + "\"");
but really i do appreciate your time. many thanks. :wave: