Page 1 of 1

Download file using <a>?

Posted: Mon Apr 30, 2007 5:22 am
by mikeeeeeeey
Hi guys, good morning :)

Just a bit of a niggle, got a CMS on the go and the client wants buttons to be able to open AND download the files parsed in the directory.

I don't actually know if there's a difference in how you would set these up i.e.

Code: Select all

<a href="dir/file.ext">download me</a>
...would work for both, but is there nothing I can do to force a download rather than opening?

Thanks in advance :D

Posted: Mon Apr 30, 2007 7:41 am
by feyd
Sending it through a script that does a forced download.