Closed dangxquang closed 4 years ago
Hi, I have not worked with file uploads yet. But this "problem" is only related to swagger-ui and swagger specification.
Your definition looks correct.
As by default an old version of swagger-ui is used, you should try to use swagger-ui as a direct dependency of your project, to use the current version. If the problem still occurs, you should ask the swagger-ui people.
I defined a route with multipart/form-data file upload.
But the form-data is not correct with CURL:
curl -X POST "http://localhost:3030/v1/uploads" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=[object File]"
Does anyone success with multiple files upload? Sorry for my poor english