|
Posted by richard on 11/17/07 03:35
On Sat, 17 Nov 2007 03:10:55 GMT, nospam wrote:
> Hello,
>
> I want to create a hyperlink to let users download MP3's when they click.
> The default behavior is to play. I know they can right-click and save as,
> but I don't want to have to tell them that. I also have a MP3 player already
> playing on the page.
>
> One googled solution was to zip the file so when the user clicks the zip
> file,
> the browser would do a open/save as dialog. This almost works - but
> the user has to download the zip and then extract the file. I would also
> have
> to have a "zip" file for each and every MP3 file. Seems a bit bloated...
>
> I want to be able to download the file on click and bypass the play option
> that the browser/user may have installed. I played around with the 'type'
> attribute but no luck----
>
> <a type="zip" href="peoplegetready.mp3" target="_blank">people get ready</a>
>
> I don't want to do FTP and expose user/passwords, etc.
>
> Anyone do anything similar like this?
>
> Thanks in advance.
>
> Regards,
> bruce
how about simply renaming the file? the reason the autoplay begins is the
file extension association.
you could try name.mpx for example. just advise them to rename the file
once downloaded.
but I've never had a case where an mp3 began to play as soon as it was
downloaded. probably due to the user's settings. not the action itself.
Navigation:
[Reply to this message]
|