Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is the user downloading a file then saving it? If so' date=' they will be prompted by the browser, you don't need to take action.[/quote']Hi Robby.

 

Our client wants a way to download their database, but does not want there to be a direct link to it - otherwise, anyone would be able to directly download the database if they knew the link.

 

If my path were "Z:\users\johnsmith" (the ISP owns this; I don't know the actual path), then my setup would be something like this:

 

path\my-website.com\aspnet-client\dataview.aspx

path\database\jsmith.mdb

 

The database is being placed in a separate directory from my-website.com so that no one can link directly to it. I guess you would say that it is "outside" of the my-website.com www-namespace???

 

So here's my plan: After our clients go through a login screen, they will have the ability to click a button to download the database. (A similar problem that I also have posted is how to find the actual path to this file.) The link will pull the database out of the Database Directory, and allow them to save it to their computer.

 

The problems I am having are:

1) I don't know what the path is or how to get it (assumed to be "Z:\users\johnsmith" in the examples above), and

2) Our client wants the ability to download/upload their database to make offline changes.

 

Maybe it helps to explain everything I am trying to do in this one message, but since there are two separate problems to tackle here, I tried submitting them as two separate issues.

 

Is my logic in trying to solve this correct? This might not even be the best way to go about doing this. If you (or anyone else) has other ways to go about solving this problem, I am eager to hear those ideas!

 

Hope to hear back from someone soon,

Joe

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...