Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
hello,this is my yaml,it can not upload file succ,I saw the request payload not have "Content-Disposition" when the post request,is this a bug?need you help and can you give me a upload example,thanks very much.
** Bump **
requestBody: content: multipart/form-data: schema: properties: file: type: string required: true format: binary
According to this SO Answer, The definition is correct and the problem is with the current UI and Editor version.
I also tried to change the UI Version to 3 using this method, but it didn't make uploads work
File uploads are working for me.
Here's the relevant part of my Flasgger YAML snippet in my function docstring:
Upload a file. --- tags: [SomeTag] consumes: [multipart/form-data] parameters: - name: file in: formData required: true type: file description: The file you want to store
As a result, the Swagger UI shows a file upload field.