I have a choral group who want to be able to download music files from the Freeway Pro site I am developing. The files will be on a member password protected page. Is this possible and what actions do I need?
This uses ‘Graphic Link to File’ to get the MP3 onto the web site but you can upload your files to your server by FTP and just use a hyperlink like yoursite.com/musicfiles/track1.mp3
If you want to force the file to download, rather than to let the
browser decide what to do with that file (like play it), then you need
to either Zip the MP3 file or do something tricky with your .htaccess
file to force the MP3 files to be treated as undifferentiated binary
data.
ForceType mp3 application/octet-stream
Add that to a text file, upload it to your server into the same folder
as your MP3 files, then make sure that your FTP application has its
“Show hidden files” option on. If you see an existing .htaccess file
in the folder, then open it and add the command above to it. But if
there isn’t already an .htaccess file in the folder, rename the text
file you uploaded .htaccess.
That’s all it takes to force the file to download rather than leaving
the choice up to the browser.
This uses ‘Graphic Link to File’ to get the MP3 onto the web site
but you can upload your files to your server by FTP and just use a
hyperlink like yoursite.com/musicfiles/track1.mp3