473,434 Members | 1,414 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

How to create a download link to download wav file?

Hi friends,

When a link is clicked, i should be able to download the wav file...I know it can be done by right click, save target...and also by zipping wav file...but that is not my aim..How can this be done? Is there any scripts?....Please guide

Thanks in advance...
Prasad
Aug 20 '09 #1
3 8670
Dormilich
8,658 Expert Mod 8TB
you can make a server script send the headers for downloading.
Aug 20 '09 #2
@Dormilich
Hi Dormilich,

Thaks for your reply,,,How can it be done ? can u please give some idea..or if u have script please share it.

Thanks,
Prasad
Aug 21 '09 #3
Dormilich
8,658 Expert Mod 8TB
I think you need to attach the "content-disposition: attachment" header (you can use the apache .htaccess files for attaching this header to all .wav files.

so probably something along this
Expand|Select|Wrap|Line Numbers
  1. <IfModule mod_headers.c>    
  2.     <FilesMatch "\.wav">
  3.         Header set Content-Disposition "attachment"
  4.     </FilesMatch>
  5. </IfModule>
Aug 21 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: richardv2 | last post by:
I want to send a link in email that when clicked, automatically starts the download of a file on my web page/server to the recipient of the email. Is there something in XHTML that does this, or...
1
by: Andrew Chanter | last post by:
I am writing a little routine to perform the following operations from an Acces 97 mdb: 1. create a fixed width text file 2. create/establish a table type link to the text file in Access 3....
3
by: John Spiegel | last post by:
Hi all, I'm trying to do something simple here...just provide a link from which a user can download a file. I'm using Server.MapPath() in my codebehind to find out physically where the file is...
4
by: Asaf | last post by:
Hi, Is there a way to create a temporary download link and to know when the client has finished downloading the file? Thanks in advanced,
5
by: nephish | last post by:
Hello there, i have an app that i need to be able to publish a link to download a csv file. i know that i can use php to make the file, but how to i link to it through php. like if i have an...
1
by: Adrian | last post by:
Using: Mysql 5.0.15 php 5.1.6 apache 2.2.3 I am trying to create a download link for various pdfs which I have stored in a mysql DB. I am having trouble with the header fields when clicking...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
12
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.