Pure ASP Upload 2 Support Product Page

This topic is locked
This topic was archived

Upload location

Asked 13 Mar 2003 16:24:15
1
has this question
13 Mar 2003 16:24:15 Daniel Baker posted:
Q: Is it possible to set the upload location to a folder that is not accessible via the web (i.e. the _private folder)?

This is what I am trying to do:
I want to allow files to be uploaded to my website, but ensure that they are secure (i.e. only accessible to users who have logged in). During the upload the file's location would be inserted into a database field. When a user logs into the site they can access a ASP page which lists all the files that have been uploaded. When a user clicks on the name of the file the file is retieved from the _private folder and downloaded to the user.

So what I need to know is:

1) Is it possible to set the upload location to a folder that is not accessible via the web (i.e. the _private folder)?

2) Is it possible to have an ASP script that retieves the file from the _private folder to be downloaded to the user? If so any ideas how I might do this?

Thanks

Dan

Replies

Replied 14 Mar 2003 10:04:45
14 Mar 2003 10:04:45 Patrick Woldberg replied:
1) It is no problem to upload an file to an private folder that is not accessable thrue the web. This can easely be done with the Pure ASP Upload.

2) This is a more tricky part, you can't directly link to the files in an private folder, bet there are some workarounds for it. You must have an asp page that reads the file and sends the content as output. There is an extension that can be found at www.basic-ultradev.com/extensions/index.asp?searchOn=force&Submit=Refresh , BUD Force Download should do this and let you download from an private folder.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------

Reply to this topic