I don't think the ForbiddenHandler will work, since he does not have
access to IIS (to map file types to the ASPNET ISAPI).
The only solution I can think of is to store the files as binary data in
a database. SQL Server and Oracle have specifica column types for this
purpose. You would then create a custom httphandler (.ashx file, since
you cannot map a new file type) that handles retrieving the file data
from the database and sending it to the Response output stream. You can
figure out which file to retrieve using a querystring.
So:
http://myserver/application/Instructions.pdf
becomes:
http://myserver/application/FileLoad...structions.pdf
or:
http://myserver/application/FileLoader.ashx?fileID=110 (where 110 is an
ID column in the database that identifies the Instructions.pdf file).
Note, in the databse table, you will want to at least store the
filename, file contents (binary), and content type (so that you can set
the Response.ContentType when you return the data).
Joshua Flanagan
http://flimflan.com/blog
Patrick Olurotimi Ige wrote:
Ray try seeing this article at:-
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Hope it helps
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!