Page 1 of 1

Delivering files from offline area

Posted: Mon Jul 20, 2009 4:07 pm
by midimid
I'm building a multi-user upload area - NO database.

This is kludgey, but I'm tracking each uploaded file by writing to a separate flattened text file for each user. I would like users to be able to see what files they've uploaded and have the option to redownload them. At the same time, I would like to keep the uploaded files area inaccessible to the web so that other users can't browse through and guess at filenames.

So - if the uploaded files area is inaccessible to the web, is there any way to somehow still deliver files to users?

i.e.
- user clicks on a link to access their file
- a script checks user credentials in session
- if user has file listed in flattened text, deliver the file to the user, else error

Re: Delivering files from offline area

Posted: Mon Jul 20, 2009 4:29 pm
by arjan.top