Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save Target As

Status
Not open for further replies.

akki007

Programmer
May 22, 2003
55
GB
I have a link to an MP3, is there a way of getting the save dialog box to appear just by left clicking the link? This is so the user doesnt have to right click and save target as.

 
<a href="MP3 file path" target="_blank">MP3</a>

Known is handfull, Unknown is worldfull
 

You could either ZIP the file, or if you have access to the web server, you could change the MIME type to a generic binary type.

Hope this helps,
Dan
 
oops, my mistake, didnt take in the Plugin players into account...

Known is handfull, Unknown is worldfull
 
How do I change the MIME type??? Also.. if a mac user downloads a zip, can they unzip it???
 

>> if a mac user downloads a zip, can they unzip it???

The same as for Windows users - if they have the relevant software, yes.

>> How do I change the MIME type???

This depends on your web server. Consult the manual / help file / relevant tek-tips forum for your web server.

Hope this helps,
Dan
 
Thanks.

I think I will leave as a 'play in browser' mp3 rather than giving users the ability to download and save the mp3. Or maybe I will zip it and upload it again.

It's not that important really!
 
just ad a warning along you're download (use right click and save as). If there user agent opens the file without asking to save it, i consider this isn't a problem. On the other hand i see why you want to do this so i'd seriously consider using a script (PHP, JSP, ASP, ...). You can set mime type as well as how the browser should handle this file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top