Is there an example how to define a file upload #131
Unanswered
mmogylenko
asked this question in
Q&A
Replies: 1 comment
-
|
Hello, file uploads are inferred from type upload struct {
Simple string `formData:"simple" description:"Simple scalar value in body."`
Query int `query:"in_query" description:"Simple scalar value in query."`
Upload1 *multipart.FileHeader `formData:"upload1" description:"Upload with *multipart.FileHeader."`
Upload2 multipart.File `formData:"upload2" description:"Upload with multipart.File."`
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Will produce this:


and not upload form like this:
Beta Was this translation helpful? Give feedback.
All reactions