sorry to be posting again so soon, but i knew this question would come up, just didnt know it would today.
i recently pretty much completed a good section of an Order Manager site, and part of this site lets users upload files for certain orders. The users should able to then be able to view the orders and download these same files or others that have been uploaded when they go back to view/edit their orders.
my question is, i have got the uploading working. in the database, i save where each order goes, all of its relevant information, and to which order it belongs.
now my question is, how do i let these get downloaded? the orders arent stored above the doc root, so they cannot be directly accessed through the browser, so i thought about just creating a link to each individual file on the edit/view order page, and then it will just download from where the file is stored. but i dont like this idea because i dont want anyone who is not supposed to see a file to guess the existence/location of one.
so do you create a temporary directory to store files that can be uploaded? what is the norm in this situation? how do i keep user a from accessing stuff that only user b is supposed to see (as far as just typing stuff in the url box to see if it comes up).
any help or ideas would be great.