Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I make a file available for download?

Reply
Thread Tools

How do I make a file available for download?

 
 
web-builder
Guest
Posts: n/a
 
      09-09-2008
I am building a website and I have a music file (mp3) that I want
people to download.

I do not want it to play when they click the link. I want the file to
download permanently (not to a temporary folder) and then they can
listen to it whenever they want.

I am using Serif WebPlus X2 and I am not very proficient with html
code. I tried creating a hyper link to "a file" but this simply plays
the file when you click the link. You can "right click" and save the
file but I want the simplicity of "CLICK HERE TO DOWNLOAD" and people
click it and my mp3 file downloads without the need to "right click"
and save.

I do want want to put my mp3 file on itunes either and have a link to
itunes. I want my donwload to be independent of organisations such as
itunes, available on my site to download.

Any suggestions?
 
Reply With Quote
 
 
 
 
Sherm Pendley
Guest
Posts: n/a
 
      09-09-2008
web-builder <> writes:

> You can "right click" and save the
> file but I want the simplicity of "CLICK HERE TO DOWNLOAD" and people
> click it and my mp3 file downloads without the need to "right click"
> and save.


So essentially, you think your users are too stupid to right-click if
they want to save the file, and you want to say "f**k you" to anyone
who prefers their MP3s to play automatically? How rude!

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      09-09-2008
web-builder wrote:
> I am building a website and I have a music file (mp3) that I want
> people to download.
>
> I do not want it to play when they click the link. I want the file to
> download permanently (not to a temporary folder) and then they can
> listen to it whenever they want.


What if when they want to listen to it is right now? Why don't you want
them to have that choice? And unless you know anything about their
computer, how can you have an opinion on where they are going to store
the file if they download it? Anyway, fortunately, you have no control
over that.

> I am using Serif WebPlus X2 and I am not very proficient with html
> code. I tried creating a hyper link to "a file" but this simply plays
> the file when you click the link. You can "right click" and save the
> file but I want the simplicity of "CLICK HERE TO DOWNLOAD" and people
> click it and my mp3 file downloads without the need to "right click"
> and save.


In what way is it simpler for them to download it and then have to go
figure out where it is so they can play it?
 
Reply With Quote
 
web-builder
Guest
Posts: n/a
 
      09-09-2008

> What if when they want to listen to it is right now? Why don't you want
> them to have that choice? And unless you know anything about their
> computer, how can you have an opinion on where they are going to store
> the file if they download it? Anyway, fortunately, you have no control
> over that.


The .mp3 file is 26 mins long so according the experience I am
presenting via my website I decree they should not listen to it
NOW.... they should listen to it at a later date. But this is
irrelevent... I simply want to know how to make a file download with
the left click, if you don't know how to do this please keep quiet. I
also want the file to donwload to a permenent location on the viewers
computer (a location that the user specifies, such as "where do you
want to save this file" and then the user saves it to "My documents"
or "My music" or wherever), and providing they are not retarded they
can then remember where they saved it to and listen to it at the right
moment. Due to it being 26 mins long it feel it is not something that
they should listen to in the middle of their journey through my site.
It you think otherwise you can go and build your own site. If you
don't know you how to help me there is no point telling me to do
something different. I know what I want to do.... I want the person
viewing my site to left-click a download button, and then a mp3-file
dowloads to a permenent location (of their choice) and while it
downloads they carry on browsing through my site.

> In what way is it simpler for them to download it and then have to go
> figure out where it is so they can play it?


 
Reply With Quote
 
Sherm Pendley
Guest
Posts: n/a
 
      09-09-2008
web-builder <> writes:

> I simply want to know how to make a file download with
> the left click, if you don't know how to do this please keep quiet.


Get over yourself - you don't own usenet. That's a stupid idea, and I
don't need your permission to say so.

> If you
> don't know you how to help me there is no point telling me to do
> something different.


I do know how to configure my server to send .mp3 files with a MIME
type that usually triggers a download. But I'm not going to tell you
how to do it, because it's a horrible idea. Telling you not to do it
*is* how I choose to help you. If you don't like the advice, you can
get back the money you paid for it.

Oh, and your attempt at "reverse psychology" is pathetic. Do you
seriously expect everyone who's telling you not to do this to suddenly
explain it to you, just to "prove" to you that we can? Puhleeze...

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
J.O. Aho
Guest
Posts: n/a
 
      09-09-2008
web-builder wrote:

> I simply want to know how to make a file download with
> the left click


You rename it so it don't have the .mp3 extension, but at the same time it
shouldn't have an extension that will trigger some other application to do
something, of course this has the disadvantage that the user has to rename
the file before it will work properly as thought on the users system (there
are those who uses DirectoryOpus, which don't care as much about the file
extension, but file header, which would start a mp3 player when clicking on
the misnamed file icon on the end users system).

Another option could be to archive/compress the file with something else than
gzip (some browsers will automatically unpack those files and let the
browser to do the default action, like play the mp3 directly and not offer a
"save").

The whole point is, you don't know which browser the end user will be using,
which settings the user has selected, so you never will be sure about an
action, so regardless of what you wish, the end user may not want to store it
on their hard drive in a more permanent way.



--

//Aho
 
Reply With Quote
 
Harlan Messinger
Guest
Posts: n/a
 
      09-09-2008
web-builder wrote:
>> What if when they want to listen to it is right now? Why don't you want
>> them to have that choice? And unless you know anything about their
>> computer, how can you have an opinion on where they are going to store
>> the file if they download it? Anyway, fortunately, you have no control
>> over that.

>
> The .mp3 file is 26 mins long so according the experience I am
> presenting via my website I decree they should not listen to it
> NOW.... they should listen to it at a later date. But this is
> irrelevent... I simply want to know how to make a file download with
> the left click, if you don't know how to do this please keep quiet.


Giving orders now, are you?

<plonk>
 
Reply With Quote
 
Chris F.A. Johnson
Guest
Posts: n/a
 
      09-09-2008
On 2008-09-09, web-builder wrote:
>
>> What if when they want to listen to it is right now? Why don't you want
>> them to have that choice? And unless you know anything about their
>> computer, how can you have an opinion on where they are going to store
>> the file if they download it? Anyway, fortunately, you have no control
>> over that.

>
> The .mp3 file is 26 mins long so according the experience I am
> presenting via my website I decree they should not listen to it
> NOW....


You CANNOT decree anything that happens on my computer; only I can
decide that. You may, at most, make suggestions.

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      09-10-2008
Chris F.A. Johnson wrote:

> On 2008-09-09, web-builder wrote:
>>
>>> What if when they want to listen to it is right now? Why don't you want
>>> them to have that choice? And unless you know anything about their
>>> computer, how can you have an opinion on where they are going to store
>>> the file if they download it? Anyway, fortunately, you have no control
>>> over that.

>>
>> The .mp3 file is 26 mins long so according the experience I am
>> presenting via my website I decree they should not listen to it
>> NOW....

>
> You CANNOT decree anything that happens on my computer; only I can
> decide that. You may, at most, make suggestions.


Not even with the right chant and some magic chicken bones?

--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project: http://improve-usenet.org
Need a new news feed? http://blinkynet.net/comp/newfeed.html

 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      09-10-2008

web-builder wrote:
>
> The .mp3 file is 26 mins long


Instead of trying to force your will upon your users, put that 26 mins
(and the file size) on the page in plain sight so the visitor knows what
they're getting themselves into. If they still want to listen to it now,
it's their choice.

--
Berg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
libmsi.a import library from wine, and header files available(entirely free software),available for python-win32 builds under msys+wine Luke Kenneth Casson Leighton Python 0 01-18-2009 08:46 PM
How to find the total and free memory available in RAM. and used & free space available in each disk? kathirvel.com@gmail.com Java 1 11-02-2006 02:31 PM
RE: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:11 AM
Re: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" Natty Gur ASP .Net 0 06-06-2004 05:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57