winista mime detector returning xwd mime type, for MP4 file - mime-types

Tried to get mime type for MP4 files using winista mime detector , it is giving as xwd(x windows dump).
Why most of valid downloaded files returning xwd mime type?

Related

MIME Type (application/zip) when I made a document in .xlsx in google apps. Open Suse 15.0

when I make a spreedsheet in Chrome (in Opensuse 15.0) and saved it as .xlsx assigns a mime type as application/zip and didn't open it with libreoffice. How can I solved to open it correctly or to assigned the correct mime type which is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
Thanks

Refused to execute script from 'chunk.js' because its MIME type ('text/html') is not executable,and strict MIME type checking is enabled

i have a django rest framework + reactjs app in frontend ,
It has deployed successfully in aws, and it's working fine in debug mode,
When i change to production: i get these errors:
Refused to execute script from '***ff1c1f05.chunk.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Refused to apply style from 'https://www.dentistconsultationhub.ai/static/css/main.85597d13.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
can anyone explain to me what mayb be the problem ?
cordially

MIME type issue with angular-i18n

I have installed angular-18n to my project, and when I include the script :
<script src="/node_modules/angular-i18n/angular-locale_fr.js"></script>
I'm getting this error :
Refused to execute script from
'http://localhost:8080/node_modules/angular-i18n/angular-locale_fr.js'
because its MIME type ('application/json') is not executable, and
strict MIME type checking is enabled.
How to solve it?

.reg file downloads from web site as MP3 in Internet Explorer?

I have a custom .reg file, which is used to apply registry adjustments. Making it a download is causing Internet Explorer ad FireFox to treat it as a media file, or download it as an MP3?
Has anyone seen this before?
Figured it out. Needed to add MIME type support to my Apache Web Server:
Using the following configuration:
AddType text/plain .reg
I changed .htaccess to:
AddType text/text .reg
It did the trick for Firefox and IE. In IE I didn't even have to download the file. Clicking it sent it directly to the registry (after ample warnings). When I changed it to text/plain it appended .txt in Firefox.

css mime type return as text/plain rather than text/css

I am using this code to get the mime type from a given file
$finfo = new \finfo(FILEINFO_MIME_TYPE);
$mime = $finfo->buffer(file_get_contents($file));
If I feed it a PHP file then I get
text/x-php
but if I feed it a CSS file I get
text/plain
I have been trying to solve this issue to no avail, I have AddType in my Apache to allow for CSS file types.
Anyone have any suggestions?
You need to tell Apache to serve files as text/css whenever their extension is .css. The only sane way for your server to differentiate between a style sheet and any other type of text file, is by its file name.
You can do so by editing Apache's MIME type configuration file, which is named mime.types ( it lives in a different folder depending on your distro, maybe try /etc/apache2 ) to make the following association:
text/css css
Alternately, if you don't have admin access, you can create an .htaccess file in your own web root. More info on both methods here
Hope this helps!
Upon rereading our question, maybe I misunderstood you, and you have already done the steps above?
If so, could you check what your OS is reading the mimetype as? There are appropriiate commands to check mimetype, over here:
Also, it seems like it would be pragmatic to add a subsequent check to see if the file extension ends with .css. Is there a reason why this won't work?

Resources