Author: c0pe | Posted on: 10/27/2010 11:17:12 AM | Views : 285

Hello,
here's the scenario... company has lots of existing reports that they pull from their own system and don't want to recreate them in their web app. Instead, I'm creating a way for them to manage uploading these reports (their system creates the pdf files, I just need to provide them the interface to upload/manage them, and of course the user facing interface to retrieve them). 
I thought I had it all worked out until I realized that even though using my interface (the web app) users will only ever see the reports they are allowed to see, there is currently nothing stopping a user from directly downloading a report file they are not supposed to if they know the path and file name.
Example folder structure on server for the uploads:
\reports\clientID\TimeStampForUniqueness\filename.pdf
like:
\reports\1003\10272010120000\WhateverTheyNameTheFile.pdf
\reports\1006\10272010021500\WhateverTheyNameTheFile.pdf

Go to the complete details ...