Forum Discussion

knarinen's avatar
knarinen
Regular Visitor
3 years ago

Swagger-UI curl has {"type":"formData"}

hi,

We have problems to upload file as swagger-ui is presenting curl this way:

curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'BPMCSRFToken: <token>' {"type":"formData"} '<url>'

My opinion is that this is a bug in Vendor's Swagger definition but they see it differently. We have managed to capture what Swagger-UI is sending as a request and therefore workaround in place for curl and python client but I would like to get the issue fixed instead of the work around. I'm afraid that when this finally gets fixed the workaround does not work anymore. 

No RepliesBe the first to reply