Setting MIME types using the ASP.NET Development Server

The built-in development web server in Visual Studio (Cassini) has no knowledge of <system.webServer>, only IIS7.x or IIS7.5 Express will consume these settings. Also the static file content types in Visual Studio’s development web server are hard coded. From Microsoft.VisualStudio.WebHost.Connection (disassembled using .NET Reflector): private static string MakeContentTypeHeader(string fileName) { string str = null; FileInfo … Read more

Vendor MIME types (for API versioning)

As I have decided to follow the jsonapi.org standard, I decided to do just what your example shows. Regarding your questions: Your MIME type should be registered I believe that each version and type should be registered, as they are unique types x- prefix has been deprecated as noted in a comment application/json-v2 would not … Read more

What rules apply to MIME boundary?

The syntax of a boundary is: boundary := 0*69<bchars> bcharsnospace bchars := bcharsnospace / ” ” bcharsnospace := DIGIT / ALPHA / “‘” / “(” / “)” / “+” / “_” / “,” / “-” / “.” / “/” / “:” / “=” / “?” And the body of a multipart entity has the syntax … Read more

How to add custom mime type?

As far as I can tell, mime types are pretty flexible (I created mine as application/whatever) and they’re accepted immediately by Android, as far back as Dalvik version 2.1. To handle them properly, I added this intent-filter: <intent-filter> <action android:name=”android.intent.action.VIEW”/> <category android:name=”android.intent.category.DEFAULT”/> <data android:mimeType=”application/whatever” /> </intent-filter> There is a caveat though. Even though I always … Read more

Which MIME type is correct for the .exe file?

application/vnd.microsoft.portable-executable is a registered MIME type and its description matches what you want to use it for. The x- prefix in application/x-msdownload indicates that it is experimental so it should generally be avoided: Especially if something standard is available as it in in this case. application/octet-stream is for arbitrary collection of bytes. It does match … Read more

What are the Google Apps MIME Types in Google Docs and Google Drive?

Google Docs: application/vnd.google-apps.document application/vnd.google-apps.kix Google Presentations: application/vnd.google-apps.presentation Google Spreadsheets: application/vnd.google-apps.spreadsheet Google Drawing: application/vnd.google-apps.drawing See here for more information. Here is a long list of Google Docs and Google Drive MIME types (it is not exhaustive): application/vnd.google-apps.audio application/vnd.google-apps.document application/vnd.google-apps.drawing application/vnd.google-apps.file application/vnd.google-apps.folder application/vnd.google-apps.form application/vnd.google-apps.fusiontable application/vnd.google-apps.kix application/vnd.google-apps.photo application/vnd.google-apps.presentation application/vnd.google-apps.script application/vnd.google-apps.sites application/vnd.google-apps.spreadsheet application/vnd.google-apps.unknown application/vnd.google-apps.video