Browsers decide what to do with files by what sort of file they are.
If you link to an html file, they will try to display it. If you link
to a Photoshop file, every browser except Safari will download it to
disk or try to launch Photoshop to open it. (Safari just displays it,
because it can.)
So in order to force these files to download, you have to trick the
browser into thinking that it can’t display the file itself. The
simplest way to manage this is to put all of these MOVs and MP3s in a
separate folder somewhere, and in that same folder put an .htaccess
file. This is a plain-text file named .htaccess (leading period is
critical for this trick to work). In that text file, you would add
the following text:
AddType application/octet-stream .mp3
AddType application/octet-stream .mov
This forces the browser to consider these file types the same as it
would a generic lump of binary code – it just downloads it to your
visitor’s disk.
The reason why you put all these in one folder is that you don’t want
this behavior everywhere on your site. Certainly there are some cases
where you would like people to be able to play the movies or listen
to music in the browser, right? If that’s not true, then just add
this file somewhere in your server’s web folder.
Note that this will have no effect when you preview locally, it
requires a real Web server to work at all.
Walter
On Mar 3, 2008, at 2:18 PM, Cindy wrote:
Hi there–
Hope you can help me out. I am using the download file action and
am selecting a quicktime or an mp3. However, when I actually click
on the link it opens up a new window and displays the file. I don’t
understand if people are able to download from there, and do they
need quicktime pro in order to do so? My download window shows no
file downloading and nothing shows up on my desktop. I want people
to be able to click on the file and have it automatically download.
What am i doing wrong? thank you for your help!
-Cindy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options