• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Database Downloading

New Here ,
Sep 10, 2006 Sep 10, 2006

Copy link to clipboard

Copied

We want to allow a user of IE, to download their Access 2000.Mdb without using an Ftp program and that will require a password entry.

In my test when using an IE web browser when I enter ftp://someuser@localhost/somedb.mdb , I get a “The page can not be displayed” message.
I would like to enter the above link and after authentication, downloading should start immediately.
Instead I have to enter ftp://someuser@localhost and then double click on somedb.mdb to download the database.
My IE is version 6.0
TOPICS
Advanced techniques

Views

232

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 10, 2006 Sep 10, 2006

Copy link to clipboard

Copied

Why use FTP?

Why not use a normal link:
<a href=" http://YourServer/YourDir/Database.mdb">Download the DB</a>

This can be secured the same way as the rest of your web app and works with ALL browsers, not just IE.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2006 Sep 16, 2006

Copy link to clipboard

Copied

Thank you for your suggestion, but our database is outside of the root of my website and your suggestion does not work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 16, 2006 Sep 16, 2006

Copy link to clipboard

Copied

LATEST
OK, here's how you handle that:
  1. Create a new file, AccessDB_Server.cfm .
    Its contents are these two lines, to start:

    <CFHEADER name="Content-Disposition" value="inline; filename=MyDataBase.mdb">
    <CFCONTENT type="application/vnd.ms-access" file="C:\temp\UsersDB.mdb">

  2. Now the link becomes:
    <a href=" http://YourServer/YourDir/AccessDB_Server.cfm">Download the DB</a>


BTW, this all kinds of security advantages and works with any browser.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 16, 2006 Sep 16, 2006

Copy link to clipboard

Copied

You need to have user permission set on the server for the folder the db is in

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation