PDA

View Full Version : How do I set up a file auto downloaded?


SpeednChrome
03-25-2011, 02:09 AM
I am glad I found this online forum, looking forward to learning tons.

I have a mp3 file that I want set up so when the download button is clicked it will auto downloaded.

I have tried all my tricks and cant figure this out.

Can someone please direct me to a tutorial that will explain it.

I have read some posts that show the "code" on how to do it but I am new to this and am not clear when that code should go. More explanation would be great.

I can design but my technical skills are limited.

Using CS5 if it matters.

This is the page I am working on.
http://www.latriaardent.com/Store/index.html

I will be setting up a play button and a download button.

You can see what I am trying to do. The way its set up now is too technical for people to do. So I have been told by the band.

Anyway, please help, thanks!

Lance

edbr
03-25-2011, 02:45 AM
you could do this with php (possibly javascript too i would think) here is a php function http://www.zubrag.com/scripts/download.php

SpeednChrome
03-25-2011, 03:37 AM
you could do this with php (possibly javascript too i would think) here is a php function http://www.zubrag.com/scripts/download.php

I am sure that would work but I dont know how to use PHP or Java.

I am a newbie at this stuff :(

edbr
03-25-2011, 03:43 AM
its very well documented. save the download page as download.php use the link example they give and change the file name. you only need to edit the path to the download folder

use link
<a href="http://path/to/script/download.php?f=misic.mp3">download</a>

SpeednChrome
03-25-2011, 04:05 AM
I'll read it over and see if I can figure it out. Thanks for the info. I'll keep you posted and ask questions if I need to. Thanks!

euer_hirte
05-12-2011, 11:24 AM
Could you help me too? I usually don't do this too, but I did start on my page now and would like to know what I have to change to make a pdf file autodownload (because of its big size)

In the background there is a image and I put three hot spots up on it as you can see:

<map name="Map" id="Map">
<area shape="rect" coords="175,31,290,85" href="file:///C|/Dokumente und Einstellungen/Seba/Eigene Dateien/portfolio_g.pdf" target="_blank" alt="open/download portfolio" />
<area shape="rect" coords="199,465,263,482" href="file:///C|/Dokumente und Einstellungen/Seba/Eigene Dateien/cv_english.pdf" target="_blank" alt="open/download english cv" />
<area shape="rect" coords="199,486,263,503" href="file:///C|/Dokumente und Einstellungen/Seba/Eigene Dateien/cv_german.pdf" target="_blank" alt="open/download german cv" />

How can I make the first one autodownload?

edbr
05-13-2011, 12:56 AM
file:///C|/Dokumente und Einstellungen/Seba/Eigene Dateien/portfolio_g.pdf
is not a correct patha s its on yur own computer