How can I get that to work in my FW site? Is there a special code required on the server? On my current sermon page, I have a direct link to the MP3 file that requires you to ‘right click’ on the link and choose to save the file.
(The link to sojournchurch.com is simply one of the church websites I am using for design ideas for my own.)
While we’re on the subject, check out the “play” button on the above linked page. Does anybody know how they were able to get the audio of the message to begin playing, without ever having to leave the page? I’m going to contact them and ask as well.
The easiest way to do that is to add a META refresh to the page, but
point it to the download file. The server will need to be kinked to
force the browser to download rather than attempt to play, as MP3 is
a well-known MIME-type and most browsers can play it directly or with
a plug-in, so they don’t generally force it to save to disk.
Search the Web archives of this list for ‘force download’, and you’ll
see my answer to this second problem at least 15 times, probably more.
You can do this using the Page / META Tags interface. Use the
‘System’ tab in the dialog, then click new. In the resulting sub-
dialog, enter ‘refresh’ in the Name field (minus the single-quotes)
and ‘5;url=http://example.com/path/to/file.mp3’ in the Value field
(again, without the single-quotes).
Obviously, use the correct path to the file you wish to start
downloading.
Walter
On Oct 13, 2008, at 8:29 AM, Buck wrote:
On the linked page below, if you click on the DOWNLOAD MP3 link,
the linked MP3 automatically begins downloading to your HD:
How can I get that to work in my FW site? Is there a special code
required on the server? On my current sermon page, I have a direct
link to the MP3 file that requires you to ‘right click’ on the link
and choose to save the file.
(The link to sojournchurch.com is simply one of the church websites
I am using for design ideas for my own.)
Sorry, I didn’t read through your question closely enough. This will
work, but you would want to have a separate download page on which
you apply it. My mistake.
I’ll see if I can find an example that does precisely what your
linked page does. I know one way, but it involves a whole server-side
framework and is likely overkill for your needs.
Walter
On Oct 13, 2008, at 9:02 AM, Walter Lee Davis wrote:
The easiest way to do that is to add a META refresh to the page,
but point it to the download file.
They are using a Flash player to play the audio on this page.
Walter
On Oct 13, 2008, at 8:33 AM, Buck wrote:
While we’re on the subject, check out the “play” button on the
above linked page. Does anybody know how they were able to get the
audio of the message to begin playing, without ever having to leave
the page? I’m going to contact them and ask as well.
It appears that they are using a complete content management system
to control this. When you click on this link, you are loading the
Audio class, and invoking the Download method, which is forcing a
download of a file which your browser believes it can handle
natively. See my previous note about how to find the recipe for a
forced download.
Here’s how I think you could make this work in Freeway.
Find a Flash player that can do the instant play part. Most of these
I’ve seen allow you to pass the filename or path to the filename as a
querystring variable. You would use a third-party FTP application to
upload the MP3 files into a separate folder on your server. Then in
Freeway you would drag a copy of the player widget onto your page and
position it how you like. FInally, with the widget selected, you
would choose Item / Extended from the main menu, and click on the
‘embed’ segment in the dialog, and then New, and then add the Name /
Value pair that your widget requires to identify the file to play
(check the documentation that comes with your player for the precise
settings). For security reasons, many of these widgets require all
URLs to be relative rather than absolute, so you may have to
experiment with …/…/ and such to traverse directories and locate
your MP3 files.
Then, in your mp3 folder, add the .htaccess trick to force these
files to download when requested through Apache. (See my previous
note about where to find the recipe.) Flash should ignore this
directive, and simply play the file, but if you make a link in your
page to the file itself (either from a graphic icon or from text)
then the link will be followed, and Apache will force a download.
Walter
On Oct 13, 2008, at 8:29 AM, Buck wrote:
On the linked page below, if you click on the DOWNLOAD MP3 link,
the linked MP3 automatically begins downloading to your HD:
Placing the files in resources so that when a viewer clicks on the “listen” link is simple enough. It will open the mp3 file in which ever media player is associated with their browser. Keeping them on the page isn’t the bug for me. What I’m wondering Is it possible to have a separate “download” link using what waltd calls the “.htaccess trick?”
Yes, but if you want to have both downloads and “play” links and use
that trick, you will need to make a separate folder and fill it with
the same files (or at least symlinks to the originals).
Placing the files in resources so that when a viewer clicks on the
“listen” link is simple enough. It will open the mp3 file in which
ever media player is associated with their browser. Keeping them on
the page isn’t the bug for me. What I’m wondering Is it possible to
have a separate “download” link using what waltd calls the
“.htaccess trick?”
Don’t place the files inside your document’s “Site” folder. It
doesn’t matter where in there you put something - if it wasn’t put
there by Freeway as part of its publishing process then Freeway won’t
manage it, upload it, or even say ‘hello’ to it.
Just thought I should mention this in case that’s what you wanted to do…
Don’t place the files inside your document’s “Site” folder. It
doesn’t matter where in there you put something - if it wasn’t put
there by Freeway as part of its publishing process then Freeway won’t
manage it, upload it, or even say ‘hello’ to it.
Does this mean the Play and Dowload folders don’t go in Resources? Just store them somewhere and then upload using a third-party FTP or my host’s FTP upload option.
Does this mean the Play and Dowload folders don’t go in Resources? Just store them somewhere and then upload using a third-party FTP or my host’s FTP upload option.
Correct- dont put them in your Resources folder because FW manages the content of that.
You could create a ‘downloads’ folder in the Site pane in Freeway, put a single page inside it (index.html, automagically) and then use Upload Stuff on that page to get the files into the folder. Anyone browsing to the folder will just see a blank page, anyone who knows the URL can download the files. You will still need an FTP application to get the .htaccess file into that folder, though, Freeway can’t manage those sorts of files for you.
Does this mean the Play and Dowload folders don’t go in Resources? Just store them somewhere and then upload using a third-party FTP or my host’s FTP upload option.
Correct- dont put them in your Resources folder because FW manages the content of that.
But they wont do folders full of files - you will have to create the Folders with FTP or FW.
David
David, Walt and others,
Let me thank you for sharing with us the incredible knowledge you have. Collectively and individually, you make us look better and brighter than we really are.
If I understand correctly, I create a folder separate folders for play and download. I apply the upload extra resources action to each .mp3 in the download folder, which also containts the ‘.htaccess trick’ described by Walt.
All right except this part. You apply the Action to a single page in
the downloads folder (which will be the index page, if you’ve let
Freeway do its automatic best). The Action provides 20 “slots” for
files that will be uploaded into the folder itself, and another 20 for
files that will be uploaded into the Resources folder within the
downloads folder. You want to use the former.
Walter
On Feb 7, 2009, at 12:00 PM, ediporter wrote:
I apply the upload extra resources action to each .mp3 in the
download folder