Questions tagged [MIME types] (20)

1
answer

Laravel 6 How to make a validation of svg?

Good afternoon. Faced with the problem of validation of svg. Trying to do a validation on the extension: 'icon' => 'max:50|mimes:svg', But the icons are only downloaded if the file contains rows:<?xml version="1.0" encoding="iso-8859-1"?> <!-- Generator: Adobe Illustrator 16.0.0 SVG Export Plug-In . SVG Version...
Miracle_Luettgen68 asked April 1st 20 at 17:25
1
answer

How to change mimetype for static file xmltv.xml.gz on a local flask?

Ran into a little problem on the flask. File EPG 'xmltv.xml.gz' located in the folder 'static' and rummaged through the local network at home devices. Not all applications can read this file because of the headers that gives the flask. The local server sends the file as 'Content-Type': 'text/xml; charset=utf-8'. Any sites i...
hardy82 asked March 29th 20 at 19:39
1
answer

How to get MIME type of file using JS/JQuery?

Straight to the point. Use the Formstone library for asynchronous transfer headers to the server during file upload. Library you can pass any code that corresponds to a particular event, such as a download initiation, the beginning of the boot, the boot process and so on. You need to get the headers for a specific file at t...
tommie.Fadel45 asked March 16th 20 at 13:17
3
answers

MIME type ('text/html') is not a supported css bug, what to do?

Not shipped with the browser. css file, how to fix?
Kay asked March 12th 20 at 13:27
1
answer

How to add a file type to the list of supported function mime_content_type?

For example, there is a sample.mkv. If to ask about the php mime type of this file, you will get "application/octet-stream". And desirable correct answer: "video/x-matroska". Is there a config in php or in the Axis, or in the web server, which can add the necessary lines of conformity?
Cristina.MacGyver asked October 10th 19 at 03:18
1
answer

xls determining the mime type

Is there some form of upload .xls files. Check the file type through the function finfo_file(). Now, the problem is as follows. If to download xls files made in microsoft office, the function perfectly defines the type of file: application/vnd.ms-excel. If shipping the. xls is done using LibreOffice, the function identifie...
Cassandra_Wintheis asked October 2nd 19 at 22:54
2
answers

Incorrect mime type from the server is Centos+Nginx+PHP-FPM?

Have server on CentOS 6 on it with Nginx+PHP-FPM without Apache Periodically the css/js are given with the MIME-type jpg or png and your browser is very upset about this. The pattern could not be detected. Reproduced on different browsers and different platforms. Browser requests are quite correct. After cleaning the browse...
Maymie_Rodriguez asked September 30th 19 at 19:12
1
answer

What about the embed tag?

Here is the embed tag,its essence is clear - it is needed in order to display the objects that the browser does not understand the source. But it is not clear what kind of objects can not display in my browser,I have FireFox. Where can I read about what objects not displaying FireFox,Chrome and other browsers? Tortured alre...
rogelio.Dicki asked September 27th 19 at 13:06
0
answer

What does it mean to mime types, multiple extensions of the same type/subtype?

In the tables of mime is that one type is more extensions. As the client or the server detects what format include the file, if you set type/subtype in the HTTP message (for example, image/jpeg, jpeg, jpg, jpe)? Or what you're doing client or server in this case?
2
answers

PHP $_FILES[filename][type] mime type should believe?

I have files when uploading through the form are checked for mime type list of allowed types. 1 now whether to trust this information? The fact that the finfo extension is not true gives the mime type, mp4 mp3 file.$info = finfo_open(FILEINFO_MIME_TYPE, $magicFile); if ($info) { $result = finfo_file($info, $file); finfo_...
glennie_Rempel10 asked September 20th 19 at 03:32