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 Harlan Messinger on 11/17/07 18:47

nospam wrote:
> Hello,
>
> I want to create a hyperlink to let users download MP3's when they click.
> The default behavior is to play.

The default behavior is whatever the user's browser is configured for it
to be, and he wants to listen to MP3s directly without downloading them
first, that isn't your business.

> I know they can right-click and save as,
> but I don't want to have to tell them that.

Why should your site behave differently for them from every other site?
Do you see yourself as a Web savior protecting people from the horrible
burden of right-clicking?

> I also have a MP3 player already
> playing on the page.

Then you're the one who has created the problem.

> 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...

The least bloated approach is to stop second-guessing what the user
wants to do.

 

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

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