Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Hosting a file for download
01-07-2008, 03:45 PM #1
Hosting a file for download
I'm trying to find a way to let a user download a file, from a Java EE application, without using a direct link to the file. For example, if I have a pdf file thats located in a downloads directory of my application, the link might be:
We are trying to make it so that you will not be able to manually type the URL of a file into the address bar and get a file that you do not have access to. Does anyone have any ideas how this is usually done? Currently digging through books and crawling around the web, but haven't found anything useful as of yet.
01-07-2008, 07:19 PM #2
write ur own servlet that checks for a token plus some identifier to locate the actual file
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow
01-07-2008, 07:22 PM #3
Wonderful timing, I was actually just starting to prototype that idea now. Thanks for the reply, I'll probably post results and an example if anyone is interested.