简体   繁体   English

HTTP 415不支持的媒体类型

[英]HTTP 415 Unsupported Media Type

I have a problem on uploading MP4 videos to our server before I encountered this problem, I already have successfully uploaded MP4 videos to our server. 在遇到此问题之前,我在将MP4视频上传到我们的服务器时遇到问题,我已经成功将MP4视频上传到我们的服务器。 I am really confused why it wont work on some MP4 files. 我真的很困惑,为什么它不能在某些MP4文件上工作。

I have following error on my console: 我的控制台上出现以下错误:

[Log] 1409209710 (1008, line 4179)
[Error] Failed to load resource: the server responded with a status of 415 (Unsupported Media Type) (upload, line 0)
[Log] File (1008, line 1611)

[Log] undefined (1008, line 1612)
[Log] 1409209770 (1008, line 4179)

Sorry for my english :), I hope you can help me with this. 对不起,我的英语:),希望您对此有所帮助。

Thanks, 谢谢,

415 Status Means what: 415状态含义:

A 415 status code is returned by a server to indicate that part of the request was in an unsupported format, ie, The request was unsuccessful because the entity of the request is in a format not supported by the requested resource for the method requested. 服务器返回415状态码,以指示请求的一部分处于不受支持的格式,即,请求不成功,因为请求的实体的格式不受请求的资源所支持,而该请求的方法不支持该格式。

Why : 为什么:

The request did not specify any media types that the server or resource supports. 该请求未指定服务器或资源支持的任何媒体类型。 For example the client specified that an image resource should be served as image/svg+xml, but the server cannot find a matching version of the image. 例如,客户端指定应将图像资源用作image / svg + xml,但是服务器找不到该图像的匹配版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Curl:HTTP 415不支持的媒体类型 - Curl : HTTP 415 Unsupported Media Type 错误HTTP状态415-将XML从php发送到RESTful时,媒体类型不受支持 - Error HTTP Status 415 - Unsupported Media Type when send XML from php to RESTful API POST PHP-415不支持的媒体类型(Zend Framework) - API POST PHP - 415 Unsupported Media Type (Zend Framework) PHP cURL POST 返回 415 - 不支持的媒体类型 - PHP cURL POST returns a 415 - Unsupported Media Type Neo4j PHP Graphaware '415 不支持的媒体类型' - Neo4j PHP Graphaware '415 Unsupported Media Type ' 使用Paypal REST API和PHP cURL发布发票(草稿)不断返回415不支持的媒体类型 - Using Paypal REST api and PHP cURL to post invoice (draft) constantly returns 415 Unsupported Media Type 使用 wp_remote_post 时出现 415 错误“不支持的媒体类型” - Got 415 error "Unsupported Media Type" when use wp_remote_post 未捕获的SoapFault异常:当我使用SoapClient时,[HTTP]不支持的媒体类型 - Uncaught SoapFault exception: [HTTP] Unsupported Media Type when i use SoapClient SoapFault异常:从PHP访问Java Web服务时[HTTP]不支持的媒体类型 - SoapFault exception: [HTTP] Unsupported Media Type when accessing Java web-service from PHP Php Soap 请求 - 不支持的媒体类型 - Php Soap request - UnSupported Media Type
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM