-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMediaTypeConst.cs
265 lines (207 loc) · 7.41 KB
/
MediaTypeConst.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
using System;
using System.Collections.Generic;
using System.Text;
namespace LBON.Consts
{
public class MediaTypeConst
{
#region APPLICATION
/// <summary>
/// The application XLSX
/// </summary>
public const string APPLICATION_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
/// <summary>
/// The application PDF
/// </summary>
public const string APPLICATION_PDF = "application/pdf";
/// <summary>
/// The application docx
/// </summary>
public const string APPLICATION_DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
/// <summary>
/// The application XML
/// </summary>
public const string APPLICATION_XML = "application/xml";
/// <summary>
/// The application octet stream
/// </summary>
public const string APPLICATION_OCTET_STREAM = "application/octet-stream";
/// <summary>
/// The application json
/// </summary>
public const string APPLICATION_JSON = "application/json";
/// <summary>
/// The application zip
/// </summary>
public const string APPLICATION_ZIP = "application/zip";
/// <summary>
/// The application XHTML
/// </summary>
public const string APPLICATION_XHTML = "application/xhtml+xml";
/// <summary>
/// The application form urlencoded
/// </summary>
public const string APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
/// <summary>
/// The application javascript
/// </summary>
public const string APPLICATION_JAVASCRIPT = "application/javascript";
/// <summary>
/// The application ogg
/// </summary>
public const string APPLICATION_OGG = "application/ogg";
/// <summary>
/// The application open document text
/// </summary>
public const string APPLICATION_OPEN_DOCUMENT_TEXT = "application/vnd.oasis.opendocument.text";
/// <summary>
/// The application open document spreadsheet
/// </summary>
public const string APPLICATION_OPEN_DOCUMENT_SPREADSHEET = "application/vnd.oasis.opendocument.spreadsheet";
/// <summary>
/// The application open document presentation
/// </summary>
public const string APPLICATION_OPEN_DOCUMENT_PRESENTATION = "application/vnd.oasis.opendocument.presentation";
/// <summary>
/// The application open document graphics
/// </summary>
public const string APPLICATION_OPEN_DOCUMENT_GRAPHICS = "application/vnd.oasis.opendocument.graphics";
/// <summary>
/// The application microsoft spreadsheet 2007
/// </summary>
public const string APPLICATION_MICROSOFT_SPREADSHEET_2007 = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
/// <summary>
/// The application microsoft presentation 2007
/// </summary>
public const string APPLICATION_MICROSOFT_PRESENTATION_2007 = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
/// <summary>
/// The application microsoft word
/// </summary>
public const string APPLICATION_MICROSOFT_WORD = "application/msword";
/// <summary>
/// The application microsoft document 2007
/// </summary>
public const string APPLICATION_MICROSOFT_DOCUMENT_2007 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
/// <summary>
/// The application mozilla xul
/// </summary>
public const string APPLICATION_MOZILLA_XUL = "application/vnd.mozilla.xul+xml";
#endregion
#region TEXT
/// <summary>
/// The text HTML
/// </summary>
public const string TEXT_HTML = "text/html";
/// <summary>
/// The text markdown
/// </summary>
public const string TEXT_MARKDOWN = "text/markdown";
/// <summary>
/// The text plain
/// </summary>
public const string TEXT_PLAIN = "text/plain";
/// <summary>
/// The text XML
/// </summary>
public const string TEXT_XML = "text/xml";
/// <summary>
/// The text event stream
/// </summary>
public const string TEXT_EVENT_STREAM = "text/event-stream";
/// <summary>
/// The text javascript
/// </summary>
public const string TEXT_JAVASCRIPT = "text/javascript";
/// <summary>
/// The text CSS
/// </summary>
public const string TEXT_CSS = "text/css";
/// <summary>
/// The text CSV
/// </summary>
public const string TEXT_CSV = "text/csv";
#endregion
#region AUDIO
/// <summary>
/// The audio GIF
/// </summary>
public const string AUDIO_GIF = "audio/mp4";
/// <summary>
/// The audio MPEG
/// </summary>
public const string AUDIO_MPEG = "audio/mpeg";
/// <summary>
/// The audio ogg
/// </summary>
public const string AUDIO_OGG = "audio/ogg";
/// <summary>
/// The audio vorbis
/// </summary>
public const string AUDIO_VORBIS = "audio/vorbis";
/// <summary>
/// The audio wma
/// </summary>
public const string AUDIO_WMA = "audio/x-ms-wma";
/// <summary>
/// The audio wax
/// </summary>
public const string AUDIO_WAX = "audio/x-ms-wax";
/// <summary>
/// The audio realaudio
/// </summary>
public const string AUDIO_REAL_AUDIO = "audio/vnd.rn-realaudio";
/// <summary>
/// The audio wav
/// </summary>
public const string AUDIO_WAV = "audio/vnd.wave";
#endregion
#region IMAGE
/// <summary>
/// GIF格式
/// </summary>
public const string IMAGE_GIF = "image/gif";
/// <summary>
/// JPEG 和JFIF格式
/// </summary>
public const string IMAGE_JPEG = "image/jpeg";
/// <summary>
/// png格式
/// </summary>
public const string IMAGE_PNG = "image/png";
/// <summary>
/// svg格式
/// </summary>
public const string IMAGE_SVG = "image/svg+xm";
/// <summary>
/// tiff格式
/// </summary>
public const string IMAGE_TIFF = "mage/tiff";
/// <summary>
/// ico格式
/// </summary>
public const string IMAGE_ICO = "image/vnd.microsoft.icon";
#endregion
#region VIDEO
/// <summary>
/// MP4视频
/// </summary>
public const string VIDEO_MP4 = "video/mp4";
/// <summary>
/// 带音频的Ogg视频
/// </summary>
public const string VIDEO_OGG = "video/ogg";
/// <summary>
/// QuickTime 视频
/// </summary>
public const string VIDEO_QUICKTIME = "video/quicktime";
/// <summary>
/// WebM开放媒体类型
/// </summary>
public const string VIDEO_WEBM = "video/webm";
/// <summary>
/// Windows视频
/// </summary>
public const string VIDEO_X_MS_WMV = "video/x-ms-wmv";
#endregion
}
}