So my website http://www.protias.com/ needs to have the ability to have a clicked linked pop up to a Save As dialog box. Your help is greatly appreciated.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Can you give an example on your site where this is not happening?
Usually it's either the result of an incorrect mime-type being sent (web server configuration) or you wanting to pop up a save box for a filetype the browser handles internally (like an image), in which case you can use the content-disposition header.
<a href="http://protias.com/2009/Services/Service%20-%2008-30-2009%20-%2013th%20Sunday%20After%20Pentecost.mp3" target = "_blank">August 30, 2009 - 13th Sunday After Pentecost</a></p>
his argument about the "right click save as" are mac users. lol
AddType application/octet-stream mp3 pdf doc <any other extensions>
to be clear, .htaccess only works if your host uses apache and is configured to allow you to use .htaccess. you will have to find out about this yourself. .htaccess applies to the current directory and all sub-directories so you don't need to put one in each child directory if there is one in the parent.
his argument about the "right click save as" are mac users. lol
Some of them are unfortunately. Why can't people just use pcs?
I probably should take a web design class eventually.
I haven't worked with Macs over the past few years, but why not just tell the people to use the right-click-equivalent option? It's either:
1) Hold down their click until the menu pops up; or
2) Hold Ctrl then click
Then they can get the options they want, one of which is likely "Save Target As...".
There are a few ways to do it. The best is to have the server send the Content-Disposition header (Content-Disposition: attachment; filename=file.mp3), but this requires some server-side programming or reconfiguration.
Well, the other thing is, this happens with in Firefox too. I just want to make this easy for everyone without having to put different "rules" on my main page on how to download.
So use the same rules every time: "Ctrl-Click and select 'Save As...' to save a file on this webpage."
See how I did that? Takes about 10 minutes to carefully word an E-Mail explaining this, or 20-30 minutes if you want to take some step-by-step screenshots. Takes care of the issue and right-clicking works in Firefox as well, so what's the problem with fixing the user rather than spending a day or two fixing the "problem" (which isn't actually a problem so much as it's a function of the browser?)
Well, if you have an agreement with the customer that states they should only have to click to do this, then you're kinda' stuck. I would hope you wouldn't have such a specific agreement for specific types of delivery on a per-file-type basis, that would be painful!
if you can't or don't want to use the content-disposition header but can use .htaccess files you might be able to put all the files you want to force the save-as dialog to show in a folder and create a .htaccess file like
however using php or similar to send the content-dispotion header would be much more reliable.Code:AddType application/octet-stream mp3 pdf doc <any other extensions>