Questions tagged «mime»

多用途Internet邮件扩展(MIME)是一种Internet标准,它扩展了电子邮件的格式,以支持除ASCII之外的字符集中的文本,非文本附件,具有多个部分的消息正文以及非ASCII字符集中的标头信息

6
YAML哑剧类型?
通过HTTP发送以YAML结构化的数据时,最适合使用的MIME类型是什么? 对于给定选择为什么最合适的解释将不胜感激。 我看不到注册的应用程序类型或文本类型。 例: > GET /example.yaml < Content-Type: ???? < < --- # Favorite movies < - Casablanca < - North by Northwest < - Notorious 可能的选择: text/yaml text/x-yaml application/yaml application/x-yaml
111 http  mime  mime-types  yaml 


5
如何找出文件的MIME类型(Content-Type)?
有没有一种方法可以找出Linux bash脚本中文件的MIME类型(或者称为“ Content-Type”?)? 我需要它的原因是因为ImageShack似乎需要它来上载文件,因为某种原因它将.png文件检测为 application/octet-stream文件。 我检查了文件,它的确是PNG图片: $ cat /1.png ?PNG (with a heap load of random characters) 这给了我错误: $ curl -F "fileupload=@/1.png" http://www.imageshack.us/upload_api.php <links> <error id="wrong_file_type">Wrong file type detected for file 1.png:application/octet-stream</error> </links> 这可行,但是我需要指定一个MIME-TYPE。 $ curl -F "fileupload=@/1.png;type=image/png" http://www.imageshack.us/upload_api.php

14
资源因MIME类型不匹配而被阻止(X-Content-Type-Options:nosniff)
我正在使用JavaScript和HTML开发网页,当我从HTML页面收到以下错误列表时,一切工作正常: The resource from “https://raw.githubusercontent.com/dataarts/dat.gui/master/build/dat.gui.min.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff). The resource from “https://raw.githubusercontent.com/mrdoob/three.js/dev/build/three.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff). The resource from “https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/renderers/CanvasRenderer.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff). The resource from “https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/renderers/Projector.js” was blocked due to MIME type …
90 javascript  mime 

13
Nginx无法加载CSS文件
我最近决定从Apache2切换到Nginx。我在CentOS服务器上安装了Nginx并设置了基本配置。当我尝试在浏览器(FF / Chrome)中加载网站时,我注意到未加载CSS文件。我检查了错误控制台,并看到以下消息: Error: The stylesheet http://example.com/style.css was not loaded because its MIME type, "text/html", is not "text/css". 我检查了Nginx的配置,一切似乎都很好: http { include /etc/nginx/mime.types; .......... } 在/etc/nginx/mime.types中正确设置了css文件的mime类型。 text/css css; 一切似乎都配置正确,但我的css文件仍未加载。我没有解释 另一件事值得一提。最初,我使用epel存储库安装了Nginx,并且得到了一个旧版本:0.8 ...在我看来,我的问题是该版本中的错误,因此我卸载了0.8版本,将nginx存储库添加到yum,然后安装了最新版本:1.0。 14。我以为新版本可以解决我的问题,但不幸的是,新版本无法解决我的想法。 感谢您的帮助。 配置文件: /etc/nginx/nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http …
80 css  nginx  mime 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.