A MIME type after MIME (Multipurpose Internet Mail Extensions) is a two-part identifier for file formats on the Internet.
Questions tagged [mime-types]
3161 questions
1
vote
0 answers
How to make filename with "+" downloadable in IIS
I want to make file "gcc-c++-4.8.5-11.el7.x86_64.rpm" downloadable in Internet Information Services (IIS). I tried adding MIME type as '*', but it didn't help.
Is there any way I can make filename having '+' symbol or any other symbol downloadable?
![](../../users/profiles/4520589.webp)
Lalit Jadhav
- 11
- 1
1
vote
0 answers
415 Unsupported Media Type with html5 video tag on live server?
I am working on simple HTML site where I am putting one video. It works on localhost but invisible on live server.
It shows me this error: 415 Unsupported Media Type
1
vote
1 answer
Disallowing unneeded HTTP headers for non-HTML resources
The Sonar test suite makes the interesting point that it should be considered bad practice to send the HTTP headers
Content-Security-Policy
X-Content-Security-Policy
X-Frame-Options
X-UA-Compatible
X-WebKit-CSP
X-XSS-Protection
when sending…
![](../../users/profiles/2657549.webp)
Clément
- 1,490
- 16
- 28
1
vote
2 answers
Firefox on WinXP delivers odd mime-type for uploaded PDF
When uploading a PDF file from an HTML form, the mime-type Firefox (WinXP) provides in the request header is:
Content-Type: /home/www/vesta/services/stamper/data/e5456e0699badbe373740d28eca79d09:
I've seen plenty of application/pdf and…
![](../../users/profiles/131824.webp)
David Weinraub
- 14,037
- 4
- 36
- 63
1
vote
2 answers
PHP: "independent" function to replace mime_content_type?
Is there any available, "independent" function which could replace mime_content_type()?
On my new hosting I'm getting error:
Fatal error: Call to undefined function mime_content_type() in download.php on line 3
finfo_file doesn't work as well...
![](../../users/profiles/562997.webp)
Sarah
- 261
- 2
- 7
- 13
1
vote
1 answer
How to solve error for stylesheet file It shows It was not loaded because its MIME type.?
I getting error in loading .css file in my asp.net Web Application, I got error message like
Error: The stylesheet http://''/css/default.css was not loaded because its MIME type, "text/html", is not "text/css".
How can I solved it.?
![](../../users/profiles/568085.webp)
Abhishek B.
- 4,886
- 14
- 47
- 85
1
vote
2 answers
Suppose I have a StringIO file. How can I use python-magic to check its file type?
import StringIO
import magic
m = magic.Magic()
thefile = StringIO.StringIO(request.raw_post_data) # I got this from Django. ajax file uploader.
what now?
![](../../users/profiles/179736.webp)
TIMEX
- 217,272
- 324
- 727
- 1,038
1
vote
0 answers
Unexpected end of MIME multipart stream in reading the second time in Web API
at first step I tried to read the contents into MultipartMemoryStreamProvider with the following code
var multipartMemoryStreamProvider = await Request.Content.ReadAsMultipartAsync();
It solve my problem in getting the input File in memory.In this…
![](../../users/profiles/3466755.webp)
Sara N
- 845
- 4
- 12
- 39
1
vote
0 answers
Android: Issue saving files to removable SD card with encryption ON
I have implemented a method for users to save/export files created by my app to any location using the Storage Access Framework. The architecture is:
Use Intent.ACTION_OPEN_DOCUMENT_TREE to have the user select a directory
Use DocumentsContract to…
![](../../users/profiles/4612814.webp)
Greg
- 41
- 6
1
vote
1 answer
upload a file as part of the Body with Web API2
I want to create WebAPI POST request which gets the body and save it in Database.
One of the body's fields is a file, which can be the image, pdf, ...
should I create a Async Post request and post the file to that?
This is the sample I found for…
![](../../users/profiles/3466755.webp)
Sara N
- 845
- 4
- 12
- 39
1
vote
1 answer
Using MIME::Parser fails to decode some emails
I'm a perl novice trying to figure out MIME::Parser to decode mime parts of an email. I mostly have it working, but there's either a deficiency in the code, or other problem that is causing the message to not be decoded properly.
These are emails…
![](../../users/profiles/1834498.webp)
Alex Regan
- 349
- 2
- 12
1
vote
1 answer
CFFILE action="upload" allows for batch files when accept="text/plain"
While upgrading from ColdFusion 9 to ColdFusion 2016, a feature where we allowed users to upload files used to block .bat files, .cert files, etc., however in ColdFusion 2016 the same code allows these files to be uploaded.
There were several…
![](../../users/profiles/978864.webp)
MPaul
- 1,884
- 2
- 17
- 31
1
vote
1 answer
Nginx http_accept cannot be mapped to variable for content-negotiation
The goal is to get map the Content-Type value to a file type using -
# nginx.conf
map $http_accept $suffix {
"~*turtle" ".ttl";
default "DEFAULT";
}
which is handled by -
# sites-available/site
location /ontologies {
root /folder;
…
![](../../users/profiles/1445681.webp)
coolharsh55
- 1,104
- 4
- 11
- 25
1
vote
1 answer
Can Guava's MediaType be used in the HTTP response header Content-Type?
Guava has a utility class for media type declarations (MediaType). However, it states in the Javadocs:
Note that this specifically does not represent the value of the MIME Content-Type header and as such has no support for header-specific…
![](../../users/profiles/1940121.webp)
codebreaker
- 699
- 7
- 22
1
vote
1 answer
After replacing object tag with img tag UI comes blank
I am converting PDF files to HTML5 using IDR tool (https://www.idrsolutions.com/online-pdf-to-html5-converter) .It has object tag which renders svg file. As referred from SVG not showing in object tag after publishing to web I added '.svg' mime type…
![](../../users/profiles/6746525.webp)
Vaibhav More
- 63
- 9