admin管理员组文章数量:1386666
I am facing an issue with WSO2 API Manager (Version X.X.X) while handling file uploads using multipart/form-data
. The API is rejecting the request due to a Content-Type
validation issue, despite the correct MIME type being sent.
Issue Details:
API Endpoint: /**************/
Expected Content-Type: multipart/form-data
Received Content-Type:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=ISO-8859-1
Error Response:
{
"code": "01",
"desc": "Invalid file type. Please upload a valid Excel file. As your File Type is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=ISO-8859-1"
}
I want this application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Content-Type only
As I also use Content-Type
<property name="ContentType" value="multipart/form-data"/>
and getting the error
本文标签:
版权声明:本文标题:Facing an issue with WSO2 API Manager 4.3.0 while handling file uploads using multipartform-data - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744519736a2610381.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论