Most voted "mime-type" questions
The mime-type (Multipurpose Internet Mail Extensions) is used to identify the types of content allowed, also allows interpretation by a browser or e-mail client.
Learn more…21 questions
Sort by count of
-
20
votes3
answers23953
viewsWhich content-type is suitable for files like: . doc, . docx, . xls
What the content-type suitable for files like: .doc, .docx, .xls (office package files in general), .pdf, media files and other less common files like Photoshop and AutoCAD?…
-
17
votes2
answers4066
viewsWhat are MIME types?
What are MIME types ? And what is its importance for correctly rendering pages/files? Its use is mandatory or depends on the browser ? If undeclared, browsers may assume a different behavior at the…
-
5
votes2
answers1637
viewsForce text to be downloaded in a format accepted by Msword with PHP?
I’d like to know how to force the download of a file, with some extension accepted by Microsoft Word, through function header. I searched a few times, tested the MIME types I found, like the ones…
-
4
votes1
answer414
viewsIs it dangerous to leave mod_mime_magic active in Apache?
Once I was arguing with a programmer more experienced than me (the user @Bacchus) about uploading files. I was commenting on it not making sense for someone to try to upload a file with extension…
-
4
votes3
answers205
viewsHow to get mime from a file through Python?
How can I get Mimetype from a file through Python? I’m not just talking about getting through the extension, but also reading the file metadata. How can I do that? Note: I tried to use the…
-
4
votes1
answer244
viewsSet MIME-type of a file on Android
I need to dynamically figure out what the MIME-type of a file is. Initially, I only need to identify videos, but I intend to use this to identify HTML pages, photos, PDF etc.
-
4
votes1
answer1351
viewsHow to discover the file extension through the Bytes array?
I wonder if it is possible to get a get on the file extension through the Byte Array. Because I download a file from the server, and it can be both . JPEG and . EPS, however I am not able to know…
-
3
votes1
answer254
viewsBlock uploading images. gif renamed with . jpg or . png in PHP
I have an uploading system where the user can upload only images with extension . jpg or .png. It follows part of the code: $imagemNomeAntes = $_FILES["the_image"]["name"]; $imagemNomeAntesExt =…
-
3
votes1
answer344
viewsWhat is the correct MIME type?
To allow the exchange of data between the server and the browser, usually several media are adopted, for example when one wants to return a set of data existent in the database using data of type…
-
2
votes1
answer627
viewsUse finfo or pathinfo to get the mime type?
finfo_* and pathinfo are used to detect the mimetype file and not the extension. The point is that in the world there are several file formats and from time to time new formats appear, I have no way…
-
2
votes1
answer676
viewsIncorrect mime for XLS files
I am doing a migration of a particular system written in ASP.NET (site) and in a certain part of that system there is a place where you upload a file XLS. There is a check against the mime type of…
-
1
votes0
answers40
viewsMashup Qlik Sense - MIME invalido
I am using Meshup with Angular 1.0.0 in Qlik Sense, when importing the application in the browser I have the following error: "O script de {caminho do meu script}, foi carregado apesar do seu tipo…
-
1
votes0
answers36
viewsApplication does not install in release mode when sent to server
I have an instance on Amazon EC2 that using PHP upload of an APK. I created a MIME-TYPE mapping the .apk with application/vnd.android.package-archive, and also editing the .htaccess inserting a type…
-
1
votes1
answer280
viewsGrab hidden extension from Uri
I have an app to watch and download videos online, my code detects mimetype by the url to use as the video extension downloaded. But some sites have the hidden extension, such as this url:…
-
0
votes2
answers427
viewsCodeigniter 3 send file with extension PFX
I need to upload a file with the extension .pfx (digital certificate). I’m using the library Upload of CodeIgniter as follows: I’m putting the extension allowed_types but does not send. Returns: The…
-
0
votes1
answer34
viewsHow does the integration of Google Maps into the web version work?
Hello! My question may seem a little vague, but I didn’t know how to summarize my doubt in a few words. What I want to know is: how does Google Maps validate API_KEY and return the map in the web…
-
0
votes1
answer26
viewsHow to place multiple icons according to "mime-type" in the same extension
The idea is very simple: I have a text file: texto.prisma $ file -i text.prism text.prism: text/Plain; charset=utf-8 I have another compiled file: compilado.prisma $ file -i compiled.prism…
-
0
votes1
answer283
viewsCss does not load
I am running several servers using Nginx + nodejs, but css does not load from the following message: Refused to apply style from 'https://konic.com.br/css/style.css' because its MIME type…
-
0
votes1
answer805
viewsSending e-mail with excel attachment - Python
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders email_user = '[email protected]'…
-
-1
votes2
answers354
viewsError mimetype application/octet-stream in jpeg image with Laravel
When trying to upload an image with Laravel I notice a different code behavior depending on the size of the image preventing the upload of the file as demonstrated in the image below that I get with…
-
-1
votes1
answer322
viewspython emailing with several attachments
Good afternoon, I am new to programming especially in python and I am trying to send all the files of a certain folder as an attachment in an email. And digging on the Internet I managed to get to…