Ask a Question

Uploading file using x-www-form-urlencoded

catatgat
New Member

Uploading file using x-www-form-urlencoded

Hello all, I'm testing some functionality of an OpenAPI parser and so I'm creating JSONs to test functionality.

 

During this endeavor, I have noticed an inconsistency between the doc and the editor.

 

In the doc:

"If type is "file", the consumes MUST be either "multipart/form-data"" application/x-www-form-urlencoded" or both and the parameter MUST be in "formData"."

 

Yet in the editor:

 "Operations with parameters of "type: file" must include "multipart/form-data" in their "consumes" property."

 

Which is correct?

Attached is the operation, I've tried with and without the application/json line.

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: