Tags "mime-types" Result

Apache2 server mime types

I am trying to get my Apache2 web application to push an arbitrary file extension as an octet-stream when pointed to by a browser. i.e. Someone goes to blahblah/examples/example1.xyz I want the browser to download the .xyz file rather than just display it. I have tried adding .htaccess in the root of the web app including AddType application/oct

it1352 3 2019-05-08

Why does the FindMimeFromData function from Urlmon.dll return MIME type “application/octet-stream” for many file types?

Why does the FindMimeFromData function from Urlmon.dll return MIME type “application/octet-stream” for many file types, whereas checking MIME type by file extension (I.e. against windows registry) returns a more precise type? For example, mp3 is an “application/octet-stream” instead of “audio/mp3”. Basically, I want to verify an uploaded file wit

it1352 3 2019-05-06

Proper MIME media type for PDF files

When working with PDFs, I've run across the MIME types application/pdf and application/x-pdf among others. Is there a difference between these two types, and if so what is it? Is one preferred over the other? I'm working on a web app which must deliver huge amounts of PDFs and I want to do it the correct way, if there is one. Solution The stand

it1352 1 2019-05-21

Multiple MIME types in Android

Is there a way to use intent.setType() and supply multiple broad types (like images and video)? I am using an ACTION_GET_CONTENT. It seems to be working with just comma-separated types. Solution Actually, multiple mime-types are supported. Have you even tried it??? For example: intent.setType("image/*,video/*") will display photos and videos...

it1352 3 2019-05-07

Google Drive mime-types listing?

As per https://developers.google.com/drive/manage-uploads, it mentions See the API reference for each method's list of accepted mime types and size limits for uploaded files. I was unable to find mime type listing at https://developers.google.com/drive/v2/reference/ Where can I find it? Solution Sorry it isn't listed in the documentation. It is

it1352 3 2019-05-18

Google Chrome gives warning Resource interpreted as Font but transferred with MIME type application/octet-stream:

I keep getting this warning Resource interpreted as Font but transferred with MIME type application/octet-stream: "http://127.0.0.1:8080/assets/font/fontawesome-webfont.woff". I am using Play 2.0.4 webserver. I added the mime-types to my application.conf file as follows mimetype.eot = application/vnd.ms-fontobject mimetype.otf = application/oct

it1352 2 2019-05-18