Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the mime type for .log files?

Tags:

mime-types

I am building a mime-type guesser and I am using the mimetype command to check my results. For log files it is returning text/x-log. I dont see this mime type on these lists:

  • http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup

  • https://www.iana.org/assignments/media-types/media-types.xhtml

like image 855
kosinix Avatar asked Apr 06 '18 09:04

kosinix


People also ask

How do I find the MIME type of a file?

For detecting MIME-types, use the aptly named "mimetype" command. It has a number of options for formatting the output, it even has an option for backward compatibility to "file". But most of all, it accepts input not only as file, but also via stdin/pipe, so you can avoid temporary files when processing streams.

What can open a .LOG file?

You can read a LOG file with any text editor, like Windows Notepad. You might be able to open one in your web browser, too. Just drag it directly into the browser window, or use the Ctrl+O keyboard shortcut to open a dialog box to browse for the file.

What is a correct MIME type for pdf?

The main MIME media type for PDF is application/pdf. This type is defined by RFC 8118 and is the responsibility of ISO TC 171 SC 2 WG 8. It was last updated in March 2017, prior to the original publication of PDF 2.0, so the PDF Association is proposing a minor refresh and update in the upcoming May 2022 ISO meetings.

How do I specify a MIME type?

In the Connections pane, go to the site, application, or directory for which you want to add a MIME type. In the Home pane, double-click MIME Types. In the MIME Types pane, click Add... in the Actions pane. In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK.


1 Answers

According to this link, it is 'text/plain', hope that helps.

https://www.sitepoint.com/mime-types-complete-list/

like image 58
Matthew Thomas Avatar answered Sep 20 '22 17:09

Matthew Thomas