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