Class SupportAttachmentContentTypes
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Which attachments may open in the browser — only types shown without running script, since a file opened from the application runs in its origin — and what every other one is served as.
public static class SupportAttachmentContentTypes
- Inheritance
-
SupportAttachmentContentTypes
- Inherited Members
Fields
Download
What a file that must only be saved is served as.
public const string Download = "application/octet-stream"
Field Value
Methods
MediaType(string)
The media type alone, lower-cased and without parameters; empty for none.
public static string MediaType(string contentType)
Parameters
contentTypestring
Returns
OpensInBrowser(string)
Whether a file of this declared type may open in the browser; parameters such as a charset are ignored.
public static bool OpensInBrowser(string contentType)
Parameters
contentTypestring
Returns
ServedAs(string)
The type to serve a file as: its declared type when it may open in the browser, otherwise Download.
public static string ServedAs(string contentType)
Parameters
contentTypestring