springdoc / springdoc-openapi-demos

Demo for OpenAPI 3 with spring-boot
http://springdoc.org
Apache License 2.0
493 stars 267 forks source link

Open API Demos upload file error #26

Closed mrxccc closed 3 years ago

mrxccc commented 3 years ago

I call the example upload interface of 'WebMVC' in Opean API Demos

Link: uploadFile

Methods: uploadFile

Error message: image

bnasslahsen commented 3 years ago

@mrxccc,

This is a demo sample...Without any DB or file storage related.

Sobhan-Akhavan commented 1 year ago

A request with the header "application/octet-stream" can not parse the file to a multipart file request.

Sobhan-Akhavan commented 1 year ago

After changing the consume in postmapping annotation to "multipart/form-data" below all parameter show Send empty value check box. Is there any way to remove this? Screenshot from 2022-09-10 11-20-10