You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/api/v1/srv/upload/kbl:
post:
tags:
- srv
summary: Upload xml file to process it.
operationId: upload.file
requestBody:
content:
multipart/form-data:
schema:
required:
- file
type: object
properties:
file:
type: string
format: binary
encoding:
file:
contentType: "*/*"
If I use a request with content-type application/pdf in the file form field, I get the content type not supported "application/pdf" error. Registering a specific RegisterBodyDecoder for application/pdf will work, but I would like to register one on the wildcard */*
which accepts application/pdf and all other unknown media-types! Is this possible? I do not know which content-types I receive in advance, so I can not register a decoder for each one.
The text was updated successfully, but these errors were encountered:
EmilLaursen
changed the title
Unsupported content type in multipart request validation
Registering body decoder for wildard */* content-type
Jan 27, 2022
This is similar to #473
except I want to accept any content-type:
If I use a request with content-type
application/pdf
in the file form field, I get thecontent type not supported "application/pdf"
error. Registering a specificRegisterBodyDecoder
forapplication/pdf
will work, but I would like to register one on the wildcard*/*
which accepts
application/pdf
and all other unknown media-types! Is this possible? I do not know which content-types I receive in advance, so I can not register a decoder for each one.The text was updated successfully, but these errors were encountered: