最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Facing an issue with WSO2 API Manager 4.3.0 while handling file uploads using multipartform-data - Stack Overflow

programmeradmin5浏览0评论

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论