Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Mime Type for server side files
Message
From
03/11/2006 13:09:05
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Determine Mime Type for server side files
Miscellaneous
Thread ID:
01166970
Message ID:
01166970
Views:
50
Hello Team,

I have a restricted folder that i am allowing authorized downloading from through a response.binarywrite fairly straight forward stuff. What I would like to do is get the content type for the file server side before I try to do the write. So i can set my Response.ContentType = "xx" correct without relying on the file extension and a big switch statement.

My humble thanks in advance,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Next
Reply
Map
View

Click here to load this message in the networking platform