Questions tagged [mime]

Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support text in character sets other than ASCII, non-text attachments, message bodies with multiple parts, and header information in non-ASCII character sets

Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support:

  • Text in character sets other than ASCII
  • Non-text attachments
  • Message bodies with multiple parts
  • Header information in non-ASCII character sets

MIME is specified in six linked RFC memoranda: RFC 2045, RFC 2046, RFC 2047, RFC 4288, RFC 4289 and RFC 2049, which together define the specifications. File name encoding is defined in .

2019 questions
146
votes
5 answers

What is the MIME type for Markdown?

Does anyone know if there exists a MIME type for Markdown? I guess it is text/plain, but is there a more specific one?
ilanco
  • 9,581
  • 4
  • 32
  • 37
143
votes
1 answer

Is there a "default" MIME type?

Is there what could be considered a "default" mimetype? I've seen "unknown/unknown" and "application/binary". But is there a default to revert to when no other MIME type is found?
Mark A
  • 5,881
  • 5
  • 26
  • 34
128
votes
5 answers

How to use the CSV MIME-type?

In a web application I am working on, the user can click on a link to a CSV file. There is no header set for the mime-type, so the browser just renders it as text. I would like for this file to be sent as a .csv file, so the user can directly open…
theman_on_vista
116
votes
6 answers

MIME type warning in chrome for png images

Just ran my site in chrome and suprisingly it comes up with this warning for each of my .png images: Resource interpreted as image but transferred with MIME type application/octet-stream. Anyone seen this before? Regards
Muleskinner
  • 14,150
  • 19
  • 58
  • 79
116
votes
16 answers

Nginx fails to load css files

I've recently decided to switch from Apache2 to Nginx. I installed Nginx on my CentOS server and setup a basic configuration. When I tried to load my site in browser (FF/Chrome) I noticed that css file is not loaded. I checked the error console and…
user337620
  • 2,239
  • 3
  • 19
  • 19
101
votes
4 answers

Sending Multipart html emails which contain embedded images

I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html. So for example if the body is something like I would like to embed…
John Jiang
  • 11,069
  • 12
  • 51
  • 60
67
votes
10 answers

How to read text inside body of mail using javax.mail

i'm developing a client mail using javax.mail to read mail inside mail box: Properties properties = System.getProperties(); properties.setProperty("mail.store.protocol", "imap"); try { Session session =…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
64
votes
3 answers

What is "=C2=A0" in MIME encoded, quoted-printable text?

This is an example raw email I am trying to parse: MIME-version: 1.0 Content-type: text/html; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Mailer: Verizon Webmail X-Originating-IP: [x.x.x.x] =C2=A0test testing testing 123 What is…
TheSoftwareJedi
  • 34,421
  • 21
  • 109
  • 151
61
votes
5 answers

Register file extensions / mime types in Linux

I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files. How can I register a file extension and associate it with my application on Linux? I'm looking for a way that is standard…
amarillion
  • 24,487
  • 15
  • 68
  • 80
57
votes
3 answers

Email from PHP has broken Subject header encoding

My PHP script sends email to users and when the email arrives to their mailboxes, the subject line ($subject) has characters like a^£ added to the end of my subject text. This is obviously and encoding problem. The email message content itself is…
daza166
  • 3,543
  • 10
  • 35
  • 41
54
votes
7 answers

File extensions and MIME Types in .NET

I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen some questions about this and the methods described to perform this can be resumed in: Use registry information. Use urlmon.dll's…
Marc Climent
  • 9,434
  • 2
  • 50
  • 55
53
votes
3 answers

Is Content-Transfer-Encoding an HTTP header?

I'm writing a web service that returns a base64-encoded PDF file, so my plan is to add two headers to the response: Content-Type: application/pdf Content-Transfer-Encoding: base64 My question is: Is Content-Transfer-Encoding a valid HTTP header? I…
Michael
  • 34,873
  • 17
  • 75
  • 109
52
votes
1 answer

Microsoft Office 2007 file type, Mime types and identifying characters

Where can I find a list of all of the MIME types and the identifying characters for Microsoft Office 2007 files? I have an upload form that is restricting uploads based on the extensions and identifying characters, but I cannot seem to find the…
maclema
51
votes
8 answers

What is the MIME type for TTF files?

I can't find correct MIME type for TrueType fonts. I need it because I'm using File Uploading Class (CodeIgniter) to upload files, and I want to allow only TTF to be uploaded. Tried this: 'ttf' => 'font/ttf' 'ttf' => 'font/truetype' With no…
CappY
  • 1,510
  • 1
  • 17
  • 32
48
votes
5 answers

Is Java 8 java.util.Base64 a drop-in replacement for sun.misc.BASE64?

Question Are the Java 8 java.util.Base64 MIME Encoder and Decoder a drop-in replacement for the unsupported, internal Java API sun.misc.BASE64Encoder and sun.misc.BASE64Decoder? EDIT (Clarification): By drop-in replacement I mean that I can switch…
Ivo Mori
  • 2,177
  • 5
  • 24
  • 35