Questions tagged [mime-types]
MIME type is a standard way that computers use to refer to the file-type/format.
102
questions
0
votes
1
answer
104
views
Can libreoffice differentiate between .txt and .csv files?
Can libreoffice differentiate between .txt and .csv files?
I have two file's that have a mime type of 'plain text document' text/plain detected.
One file ends in .txt and the other ends in .csv.
Is it ...
1
vote
0
answers
85
views
`gio open` fails to use its own mime config
I'm struggling with gio failing to open an url using default browser under XFCE4 desktop environment. What could be the reason and how to fix it?
gio info http://google.com identifies the link as text/...
0
votes
0
answers
180
views
How can I force Firefox to load stylesheets mis-reported as "text/html"?
I'm visiting a website whose stylesheets have reported MIME type text/html rather than "text/css". Otherwise, they're just fine. I can't control the webserver or fix this problem - but I ...
1
vote
0
answers
68
views
Using mimetypes: How to use offset in magic?
I know that to add a mimetype whose file extension is used for other mimetype I can use magic like that:
<mime-type type="audio/x-gtp">
<magic priority="50">
...
1
vote
1
answer
549
views
Sending HTML email to HCL Notes is not rendered properly in Notes client or webmail
I am sending an html email to my email in Notes client/Webmail but the stylesheet does not seem to be applied so the email look awfull. When I open the same email in iOS default mail client (from ...
0
votes
0
answers
2k
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 ...
0
votes
1
answer
181
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 ...
0
votes
0
answers
33
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 ...
0
votes
1
answer
387
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,...
0
votes
0
answers
45
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
0
answers
160
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
2
answers
10k
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
0
answers
23
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
1
answer
542
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 --...
1
vote
1
answer
331
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
1
answer
86
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/...
5
votes
0
answers
2k
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
1
answer
1k
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? ...
2
votes
2
answers
1k
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
1
answer
79
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 ...
1
vote
1
answer
2k
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
1
answer
310
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 ...
2
votes
2
answers
1k
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 ...
12
votes
5
answers
17k
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
1
answer
530
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 ...
5
votes
1
answer
3k
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
1
answer
185
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
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 ...
0
votes
0
answers
84
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
1
answer
365
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
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 ...
1
vote
0
answers
296
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
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 ...
7
votes
1
answer
4k
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
3
answers
4k
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" ...
42
votes
3
answers
70k
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
1
answer
170
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 ...
6
votes
2
answers
6k
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
1
answer
320
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
1
answer
19k
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
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 ...
0
votes
1
answer
291
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.
...
71
votes
2
answers
88k
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
1
answer
1k
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
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 ...
16
votes
4
answers
17k
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
4
answers
11k
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
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 ...
0
votes
0
answers
143
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
1
answer
5k
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 ...