Force download of mp3 file, not play
Autor: David F.
Visitado 3646,
Seguidores 1,
Compartilhado 0
I have a text and graphic with a URL link to an MP3 file. When either is clicked I want the file to be downloaded not played. In HTML5 I can achieve this by adding the word download after the URL. If I specify the link in X5 it includes download inside the quotes around the URL, thus.
<a href="http://www.xxx.com/audio/Track001.mp3 download"
Is there any way I can achieve:
<a href="http://www.xxx.com/audio/Track001.mp3" download
Without exporting the HTML and editing it by hand?
There are 9 of these on the page and they change every two weeks, so I don't want to have to edit manually!
Publicado em
Have you tryed the download button option in the object management section?
step 3 top right manage, refresh, select download button install and try if that one does the trick.
Autor
Thanks Andre but two problems;
1 this is an X5 version 9 project and I although I have version 12 I don't want to convert unless I have too.
2 Having paid for the upgrade I expect standard funtionallity like this to be included, otherwise why should I upgrade?
Anyone any ideas in version 9?
for V9 you could make a link to the file and set a description in it (it's in the TAB description of the link option) there write:for download to use right mouse button (or something similar. html code protection needs to be off in that case.
Else you could make it a zip file.
This is not an x5 issue, it's the operating system that recognises the file and opens the corresponding program.
But why not update, the programming behind the website is much better in v12 and up to date with standards used today. So my advise is to use v12, not only for the function but also to be more up to date with your website.
Hope this helps.
BR Andre
Hi
you could also use our digital downloads script https://www.x5tuts.com/downloads/websitex5-digital-downloads/ it allows you to sell or give free downloads, supports multiple gateways and works in v9 - v12.
thanks