Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Developer Portal - File Upload - multipart/formdata

Not applicable

@Gitesh Koli

One of our API has file upload functionality. Here is the swagger spec parameter for the file field.

{ "name": "file", "in": "formData", "description": "Desc", "required": false, "type": "file" }

When I send the request from Smart Docs (try out), the request is sent with Content-Disposition: attachment; filename="file" instead of Content-Disposition: form-data; name="file";

Can you suggest a way to fix attachment content-disposition format?

0 24 2,547
24 REPLIES 24