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
1
vote
1answer
61 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
6 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
106 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
0answers
16 views

Why is Pale Moon not loading my stylesheet randomly? (Apparently because of uBlock Origin.)

I have Pale Moon installed on Windows 10. I have it running. I first clear ALL browser data and then close the program. Then I run this command: http://127.0.0.1/test/test.php Now I again clear the ...
0
votes
1answer
24 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
40 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/...
0
votes
0answers
56 views

How to find attachments in email using bash or PHP

Suppose I have a /mail folder where I collect all email received daily from my server in .eml format. Using normal Linux bash tools is it possible to find in the folder /mail a list of .eml files ...
0
votes
0answers
78 views

Chrome open specific Mime-Type in Browser

We have a system that uses the Mime-Type image/alt-pdf to download .apdf Files. Now we want Chrome to open those files (basically just pdf's) in a new Tab instead of downloading them. How could we ...
0
votes
0answers
101 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.
0
votes
0answers
22 views

Dropping text onto Slack does not work

I'm seeing an issue with Slack where dragging and dropping text (from anywhere) onto Slack has no effect. The drop event seems to be ignored even when dropping onto a text input. This may be a problem ...
1
vote
1answer
190 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
102 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
0answers
59 views

mimeapps.list equailent on Windows

I know there's a way to add new default apps to Windows, by programmatically, but I don't have any clue how to do that. I want to achive something which opens a Windows application from browser with ...
0
votes
1answer
39 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
588 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
83 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
445 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 ...
2
votes
3answers
4k 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
309 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-...
1
vote
1answer
97 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
64 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
197 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
226 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 ...
7
votes
1answer
2k 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" ...
30
votes
2answers
45k 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
163 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
4k 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
203 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
12k 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
158 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. ...
42
votes
2answers
52k 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
826 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 ...
12
votes
2answers
12k 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
8k 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
106 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
3k 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
60 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
154 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
886 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
132 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 ...