Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mime-types]

MIME type is a standard way that computers use to refer to the file-type/format.

0
votes
0answers
10 views

Remove or deproritize default application binding

I've recently installed qtcreator which get bounded as default app for many mimetypes. How can I revert those changes to make all the cpp, hpp, ..., etc be openned by my default editor kate?
0
votes
1answer
51 views

How to fetch files by mime type with wget

Some URLs are like this: /foo/bar In that, they don't have an extension like this: /foo/bar.txt If there is an extension it's easy: wget -r -A .txt http://asdf.com But if there isn't, then I'm ...
0
votes
1answer
25 views

where do thunderbird / Xcfe get their MIME type handler settings?

In my thunderbird setup (version 60.0 on 64-bit Debian Stretch) PDF attachments are opened in libreoffice showing generally useless gibberish. That is when I double-click. When I right-click, there is ...
0
votes
1answer
86 views

How can I get the extension(s) of a file based on its content?

I'm planning on downloading a bunch of images from a website that don't come with an extension, so I want to add one based on the file's content or mime-type. file <filename> does a great job ...
0
votes
2answers
158 views

How to configure Firefox open Zoom URLs using Zoom application

I'm using a conference application called Zoom. There are URLs that can be clicked to open the application and let jump in right away to the meeting that ID existed in the URL. For example: https://...
0
votes
0answers
194 views

IE11 javascript file is downloaded instead of opening in new tab/window when browsed

I am managing a web portal which runs through a proxy. The proxy caches the js files including other files. I do not have control of the proxy. When ever I make changes to .js files I open it in a new ...
0
votes
1answer
193 views

Converting a Windows xlsx into a Mac xlsx

I'm working on a process that takes data from customers and parses it into our product. In this case, an xlsx file. Unfortunately, our product is having trouble reading it because it was coded to read ...
1
vote
1answer
417 views

Ranger's default filetype association

I want to make ranger open GIFs in mpv instead of in feh. I added the line image/gif=mpv.desktop; in ~/.config/mimeapps.list (under [Default Applications]), updated the database with update-mime-...
1
vote
1answer
74 views

How can I tell Firefox that I want to view some plaintext MIME types directly in the browser

I got a link from a friend which pointed to a standard .patch file, and the web server served-up the file with a Content-Type of text/x-diff. Firefox prompted me to download the file, but I'd prefer ...
0
votes
2answers
553 views

How to set “File Roller” (aka File Manager) as default for ALL supported types in Gnome and Cinnamon?

Ever since I installed p7zip-gui, it hijacked my system by setting itself as default application for all mime types it can open (31 types in total). Cinnamon provides a tool called Preferred ...
0
votes
0answers
63 views

file association saving not working on Opensuse 13.1

I'm on Opensuse (KDE5). For some unknown reason it's impossible to change what application should be used to open a specific file. Even if I do apply or save, after I go in the same menu, it gets the ...
0
votes
1answer
114 views

Handling files by http server

As i understand when the server (e.g. Apache) receives a request it looks for file name extension to find associated mime-type. Then it looks for the handler handling this mine-type (i'm stating it ...
1
vote
1answer
2k views

Add a MIME type on Windows 7 - IE

IE11 does not recognise the correct mime type of a file if the mime type is not made known to windows (at least I think that's what's going on). The drag & drop events of the browser show an empty ...
1
vote
0answers
196 views

How to get Firefox to recognize MIME types already established on a device?

When installing Firefox, only the default MIME types are configurable via the Options dialog box (currently 8 of them). How do you get Firefox to recognize all the MIME types configured (in the ...
1
vote
1answer
1k views

MIME format issue moving old mail from Office 365 to a free Gmail account

I'm in the process of moving around 30.000 emails from an Office 365 account to a free Gmail account. I tried several ways to do this: Copying emails in Outlook 2016 for Mac from the original folder ...
4
votes
1answer
656 views

Firefox: download all file types without prompt [duplicate]

I am trying to set the default behavior for downloading files in Firefox. Currently it opens a nasty dialog "open with or save", and i can tick a checkbox to perform selected action for this mimetype ...
3
votes
3answers
2k views

Firefox tries to open application/octet-stream with gedit

I'm using Firefox 41.0.1 on Fedora 22. I noticed this behaviour when I was trying to open a PNG image link on a GitLab site. The server replies with "Content-Disposition:"inline; filename="logo.png" ...
24
votes
2answers
32k views

Is there a generic mime-type for all image files?

I know that I can use the specific mime-types as listed for example here, or a generic mime-type for any file like application/octet-stream, but is there a generic mime-type for all image files? (I ...
4
votes
1answer
153 views

Getting rid of Flash in Firefox (MIME)

After having had Flash installed and blocked with NoScript for the last few years (except on a enable-per-use base), I have recently -- a month or so ago -- grown tired of the frequent security issues ...
3
votes
2answers
3k views

Chromium: prevent unpacking tar.gz

The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using wget with the same URL, it shows: $ wget http://mydomain/dir/file.tar.gz ... HTTP ...
-1
votes
1answer
157 views

How accurate is content sniffing in order to determine filetype?

I need to identify the mime-type of extensionless files(document fileformats such as PDF, doc, docx etc), and I am wondering how accurate known file-signatures are? What I will do is to create a map ...
2
votes
1answer
8k views

Nginx cannot serve css files because of MIME type error

My Setup: It is a nginx/gunicorn setup for django webapp. Here is my nginx config file: worker_processes 1; user ubuntu nogroup; # for systems with a "nogroup" # user nobody nobody; # for ...
2
votes
1answer
1k views

KDE launcher opens .desktop files in kate

Opening programs via the 'Application Launcher' menu, then selecting the program works. Using the launcher generated on the panel, eg by right-clicking on an open program, then selecting 'Show A ...
0
votes
1answer
123 views

Mimetype --stdin always returns text/plain

I am having a hard time getting the correct mimetype info without relaying on the file extension / inode data. When using magic it returns with text/plain ever time regardless of what the file is. ...
26
votes
2answers
33k views

What is the correct MIME type for a tar.gz file?

What is the correct MIME type for a tar.gz file? I've searched around and found several values being used, including: application/x-gzip application/x-gtar application/x-tgz But I could find no ...
0
votes
1answer
637 views

How to configure Firefox to handle text/foo internally?

I frequently would like to display text-like content (e.g. text/turtle) directly in the browser (i.e. without downloading it or opening it in a separate text editor). Is there a way to configure ...
3
votes
0answers
894 views

Dolphin/Konqueror wrong file type recognition

In Dolphin/Konqueror files that are supposed to have "unknown" file type have "Microsoft Help Attribute Definition File" as their type. This also affect files without extension with special symbols ...
9
votes
2answers
8k views

Disable “open with” option on Firefox downloads (force Firefox to always save all files)

The symptoms Users open their web mail accounts, click on some attachment, and click "Open with Word". Users edit their precious documents for hours. Users save word doc and exit. Users can't find ...
0
votes
3answers
6k views

MIME Not Supported Error on Webpage

I have a strange issue on some but not all machines I am currently deploying across a large network. All are the same base image except some have obviously had things installed since this has come to ...
2
votes
1answer
612 views

Open H and C files as text files in browser?

I'm using Firefox. When I come across a source file I want to examine, Firefox performs a download of the file. Then I have to wait 5 or 10 seconds for Xcode to spin up. For example, genks.c. I'd ...
0
votes
0answers
71 views

Mutt, not respecting mailcap search order?

According to the docs (see "Search Order"), the mailcap below should behave like this: When I read a message, it'll be processed through lynx When I browse to the attachment screen, and select the ...
0
votes
1answer
2k views

How to add Zip MIME Type in Mozilla?

I have a question, and I'm finding too difficult to solve. If you press Tool/Options in Mozilla web-browser, then Applications there you will have a list of MIME Types that you can manage some ...
1
vote
1answer
54 views

Autofix file extensions based on content

Is there an app/script what will peek at file content and try to guess the correct file extension? I have a bunch of files recovered from a backup and it's a mix of images, videos and documents. The ...
0
votes
1answer
1k views

Associate MIME Type with Shell Script?

I want to associate any file type with a .abc extension with the following shell script: #!/bin/bash echo arg 1 is: $1 The .abc type files just have text, but I want to ensure that opening a file ...
0
votes
2answers
145 views

Embedding an image that is on a company network in an html email viewable by people not on the network

My automated test takes a screenshot that needs to get emailed to managers in my company. currently, the screenshot is stored on a Hudson test server and my html email has this line: <img src=\"${...
1
vote
1answer
644 views

How to view text file in Firefox window without downloading it?

I want to see the content of a .m3u8 file without downloading it. I remember reading this trick somewhere, but I can't remember exactly where. What I do remember, is that it involves adding special ...
1
vote
1answer
5k views

“windows media player cannot play the file” mp4

We have an .mp4 video hosted on a web site. I can play back the video from the production version of the web site, but not the test version of the site. The production web site has the .mp4 MIME ...
0
votes
0answers
100 views

Kitty Load Profile via URL Handler

I'm able to add the Kitty SSH Handling in Firefox/IE to load the hostname via ssh://hostname.mydomain.com, however I'd like to load a session instead of a hostname, i.e. ssh://mysession. I modified ...
6
votes
2answers
3k views

default mime type program is inconsistent between system and the mozilla firefox/thunderbird?

In kubuntu ,the default programs associated with mime types in mozilla products are completely different from the system-wide setting or user setting. For example, firefox/thunderbird will always use ...
1
vote
0answers
254 views

Is there a work-around for Firefox not properly handling file actions without a mime type?

When a web application delivers a file to the browser without a mime-type (such as providing a WAV file as binary/octet-stream rather than audio/wav), Firefox will always display the dialog asking you ...
2
votes
1answer
263 views

Configuring Apache2 /etc/mime.types to display .pgm images

I'm trying to display a .pgm image on my Apache2 server, however I can't seem to get it working. I've edited my /etc/mime.types file to include the line image/x-portable-graymap pgm, but it still ...
0
votes
1answer
710 views

Should Thunderbird send inline png attachments as text/plain?

I'm composing emails in Thunderbird. When I attach png images by dragging to the header region, they are attached as Content-Type: image/png; name="foo.png" Content-Transfer-Encoding: base64 ...
6
votes
1answer
3k views

How does Linux decide on a default application?

I know that each program that can open files has a desktop entry under /usr/share/applications, and that the defaults for each mimetype are stored in /usr/share/applications/defaults.list and ~/.local/...
1
vote
2answers
2k views

How to add a MIME type in IIS via windows command line

How can I add a MIME type (file type) like .apk to IIS via command line?
3
votes
3answers
2k views

Zipping Epub: Mimetype file should contain only the string “application/epub+zip”

I followed this tutorial to create an epub file. The mimetype file only contains application/epub+zip and should not be compressed. However, the zip commands that were recommended to achieve the non-...
1
vote
0answers
388 views

Setting mutt mimetype to handle multiple options

I've configured .mailcap for mutt to handle mimetypes of attachments individually, with different 'viewers' over the years which works well, however mailcap can handle only one application per type. I'...
3
votes
1answer
2k views

How does Linux know what is the mimetype of a file?

How can linux know the mimetype of a file? Is there something written inside the file? Does it look at the extension of the file?
3
votes
2answers
9k views

Download text/plain instead of opening in browser

By default Firefox opens pages with MIME Content-Type: text/plain in the browser. I would like to instead download these files. I realize I can File Save Page As, but I would like the Save File ...
0
votes
0answers
38 views

Browser downloads jpgs, doesn't display them

My browsers (Chrome, IE both exhibit this behavior), when faced with an href link that points to a .jpg file, downloads it rather than displays it. I think perhaps something happened with file ...
1
vote
1answer
2k views

How do I set up preferred applications in Nautilus by file extension, rather than by mime type?

I regularly work with a few sorts of plain text files, some of these are code files that I want to open in a programmer's text editor, others are large (gigabyte or more) data files that I only want ...