Click to See Complete Forum and Search --> : how to download Access file?


weee
07-08-2004, 10:55 PM
I've seen administration systems that allow the administration person to download the datbase of the website by clicking a button.

How can I do that?

Thanks!

buntine
07-09-2004, 12:52 AM
Make a link to the file using the anchor element.

<a href="http://www.yoursite.com/subdir/admin/dbfiles/database.mdb">Download Database</a>

Regards,
Andrew Buntine.

weee
07-09-2004, 06:52 PM
I can't access to the "database" folder.

buntine
07-09-2004, 11:27 PM
Well, you need to grant access... Why do you need to download the database anyway?

weee
07-10-2004, 08:38 PM
i want to do it for backup purpose.

PeOfEo
07-10-2004, 08:52 PM
You can use an http header to get the server to cough up the file to the user. In asp.net it uses response.addheader....

buntine
07-10-2004, 11:36 PM
You said that you cannot access the folder which contains the database. Why not? Do you not have directory browsing permissions? Do you not know where it is?

Regards.