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
0answers
19 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 ...
0
votes
0answers
21 views

Discord MIME types not found on linux install

I have installed Archlinux yesterday, and today, right after the install of the Discord package from pacman, I could see the following warnings on journalctl: déc. 15 14:00:02 Travis systemd[403]: ...
0
votes
0answers
81 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-...
1
vote
2answers
918 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 ...
1
vote
0answers
7 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 ...
0
votes
1answer
314 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 --...
0
votes
1answer
90 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 ...
0
votes
1answer
48 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/...
2
votes
0answers
339 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.
1
vote
1answer
337 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? ...
0
votes
2answers
332 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?
0
votes
1answer
41 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 ...
0
votes
1answer
850 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
106 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 ...
1
vote
1answer
573 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 ...
7
votes
3answers
10k 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
1answer
374 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 ...
2
votes
1answer
1k 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-...
2
votes
1answer
110 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
1k 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
65 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
218 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
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 ...
1
vote
0answers
230 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
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 ...
7
votes
1answer
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 ...
3
votes
3answers
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" ...
37
votes
2answers
54k 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
164 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 ...
5
votes
2answers
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 ...
-1
votes
1answer
245 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
14k 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 ...
3
votes
1answer
2k 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
177 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. ...
57
votes
2answers
64k 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
840 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
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 ...
15
votes
4answers
15k 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
4answers
9k 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
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 ...
0
votes
0answers
109 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
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 ...
1
vote
1answer
65 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 ...
1
vote
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
177 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=\"${...
2
votes
1answer
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 ...
1
vote
1answer
6k 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
168 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 ...
7
votes
3answers
4k 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
274 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 ...