You are here: Re: How to download MP3 and not play « HTML « IT news, forums, messages
Re: How to download MP3 and not play

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация