Questions tagged [mime-types]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
217 views

How to force the browser to (disregard mime types and) load the file in a tab instead of downloading?

Say there is a text file or a .csv in some http/https url. I want, instead of downloading, to load it in a browser as plain text, possibly parsing html or show tables if it’s a csv, chose correct ...
user avatar
  • 11
0 votes
1 answer
33 views

With Firefox, open .vi files from web pages directly with LabVIEW

I use Firefox (now 98.0.1; March 2022) and Windows 10. In the recent past (i.e., Feb 2022), when I clicked on a web link to a vi, it used to open the file in LabVIEW directly. Now, Firefox instead ...
user avatar
0 votes
0 answers
15 views

Audit Request for Complete List of Recognized Filename Extensions in FFMPEG FFPROBE FFPLAY

I understand FFMPEG has a list of supported codecs and some users will be tempted to dismissively handwave my request by telling me to do my own research on codecs. Those responses will be treated ...
user avatar
  • 115
0 votes
1 answer
80 views

Send a MIME Email with PUTTY

Im currently wondering how to send a mime mail with putty, important is, for now i only want to "declare" the mail as a mime mail if thats possible. I dont want to send an actual picture,...
user avatar
0 votes
0 answers
22 views

No video with supported format and MIME type found?

I am trying to get to the bottom of an issue I've encountered today. I have a guide that uses bb code and I have been uploading short videos to imgur.com to get them to autoplay. I get the error shown ...
user avatar
0 votes
0 answers
29 views

Debian Buster, XFCE − Firefox keeps forgetting it's been my default browser forever

In the preferences of Firefox itself, the default browser box is checked, of course. In Settings / Personal / Preferred Applications, the web browser is set to "Mozilla Firefox" like it ...
user avatar
0 votes
0 answers
103 views

bash script emails fine for SMS texts but not for MMS - MIME content seems to be boundary-isolated by cell phone company

I need my bash shell scripting to "sendmail" (ssmtp specifically) the jpg file of interest out to email clients and/or two Android "text" (MMS) clients. As long as I stay with non-...
user avatar
1 vote
2 answers
4k views

How do I force .png or .jpg images to be downloaded as png or jpg, instead of webp? (any browser, not just chrome)

When I have an image URL for a jpg or png image, for example: https://static.coingecko.com/s/coingecko-logo-d13d6bcceddbb003f146b33c2f7e8193d72b93bb343d38e392897c3df3e78bdd.png When I visit this ...
user avatar
1 vote
0 answers
11 views

Drag&Droping/Pasting video into program with CLI

I have script that records a video and saves it into a folder. What I want to do is to have an automated way to share recorded videos with friends - either by sending it via discord or caprine (fb ...
user avatar
  • 133
0 votes
1 answer
422 views

Mime type of MS Office documents saved from OpenOffice etc. is not recognized in Debian 9

Just today I faced the problem that document created by OpenOffice package and saved in XLSX format, recognized in Debian 9 as octet-stream instead of valid MS Office format: root@linux# file -b --...
user avatar
  • 1,637
1 vote
1 answer
198 views

Transmission right click "Open Folder" opens xfburn instead of thunar

Regarding the Transmission bit torrent client, when I right-click the "Open Folder" option, the application xfburn opens instead of the file manager Thunar. How can I fix this? My operating system ...
user avatar
  • 1,957
0 votes
1 answer
58 views

`file` fails to identify file extensions for several file types

On macOS—and perhaps other *nix systems—the file command’s --extension option outputs ??? most of the time, to the point it’s useless. Examples using the example PNG from Wikipedia: $ file /Users/...
user avatar
  • 1,030
2 votes
0 answers
785 views

Extract Mime Type codecs for MediaSource using FFprobe

I have to extract the codecs e.g. 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' for the MediaSource API. How can I do this strictly with FFprobe/FFmpeg tools? Do not suggest other tools please.
user avatar
  • 215
1 vote
1 answer
599 views

How to visualize a multipart mime message saved into a file?

I am generating (with python) a multipart mail message, including some attachments, and saving it to a file: message.mime Two questions: what is the correct extension to use for this kind of file? ...
user avatar
  • 111
0 votes
2 answers
635 views

Check if video has a correct extension using FFmpeg

I renamed video's extension from mp4 to webm. There are no problems with the playback, but I have to be sure that mp4 is mp4. Is there a 100% way to detect mp4 video?
user avatar
0 votes
1 answer
51 views

Mime.cache error usr/share/mime and could not log in user account(Keep asking password)

I accidentally remove the mime.cache when I installing zoom to my ubuntu(14.04). Right now it does not allow me to login keep asking me a password in a loop even though I write it correctly. I login ...
user avatar
  • 1
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
181 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 ...
user avatar
2 votes
2 answers
800 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 ...
user avatar
  • 2,307
12 votes
5 answers
15k 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://...
user avatar
0 votes
1 answer
401 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 ...
user avatar
2 votes
1 answer
2k 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-...
user avatar
  • 451
2 votes
1 answer
131 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 ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
  • 1,380
0 votes
0 answers
74 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 ...
user avatar
  • 21
0 votes
1 answer
255 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 ...
user avatar
  • 649
1 vote
1 answer
3k 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 ...
user avatar
  • 167
1 vote
0 answers
253 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 11
7 votes
1 answer
3k 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 ...
user avatar
  • 201
3 votes
3 answers
3k 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" ...
user avatar
40 votes
3 answers
61k 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 ...
user avatar
4 votes
1 answer
166 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 ...
user avatar
  • 4,452
5 votes
2 answers
5k 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 ...
user avatar
  • 725
-1 votes
1 answer
284 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 ...
user avatar
2 votes
1 answer
16k 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 ...
user avatar
  • 750
3 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
210 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. ...
user avatar
65 votes
2 answers
75k 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 ...
user avatar
0 votes
1 answer
867 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 ...
user avatar
3 votes
0 answers
1k 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 ...
user avatar
16 votes
4 answers
16k 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 ...
user avatar
0 votes
4 answers
10k 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 ...
user avatar
  • 2,093
2 votes
1 answer
2k 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 ...
user avatar
  • 11.1k
0 votes
0 answers
111 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 ...
user avatar
0 votes
1 answer
4k 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 ...
user avatar
  • 103
1 vote
1 answer
67 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
2 answers
196 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=\"${...
user avatar
  • 315
2 votes
1 answer
1k 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 ...
user avatar
  • 221