|
Hi
Trevor,
There
is another approach to this which I prefer. When your app has validated the
user's right to see the file, create a directory with a long name, ie the user
reference, in a temporary area. Write the file to the new directory, giving it a
meaningful name, then redirect the user with an url that points to the file.
This solution is logically **as secure** as serving the binary file through
Witango, because it relies on the security of the session reference, just as the
Witango session does.
This
solution has the disadvantage that you need to take care of cleaning up the
files afterwards, but it has a couple of advantages...
1. You
are not serving large binary files through Witango, which it was not really
intended for.
2. You
don't have to fiddle with setting the http headers.
3. If
I remember, IE takes the extension on the url as an indication of the content
type of the response, so no matter what http headers you set, you may find IE
will not deal with a pdf, say, if the url with which it is requested does not
contain the .pdf extension.
Good
luck.
Simon
Boddy.
|
Title: RE: Witango-Talk: return protected file
- Witango-Talk: return protected file Trevor Green
- Re: Witango-Talk: return protected file Lee Sobo
- RE: Witango-Talk: return protected file Henning Sittler
- RE: Witango-Talk: return protected file Henning Sittler
- RE: RE: Witango-Talk: return protected file Trevor Green
- RE: RE: Witango-Talk: return protected file Trevor Green
- RE: RE: Witango-Talk: return protected file Henning Sittler
- Simon Boddy
