Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload help #2295

Open
eshanchawla0403 opened this issue May 19, 2020 · 1 comment
Open

File upload help #2295

eshanchawla0403 opened this issue May 19, 2020 · 1 comment

Comments

@eshanchawla0403
Copy link

New to go-swagger looking for some helping client side code that talks to a server api accepting multipart formdata.

Client (in golang) -> Server (in golang using go swagger)

The server side api consumes multipart form data and has a field with type as "file" in the input.

Looking for some help around how to pass a file from client to server.

@lvarin
Copy link

lvarin commented Oct 8, 2020

Just my two cents. This is what I used to write swagger.yaml:
https://swagger.io/docs/specification/2-0/file-upload/

(I only miss how to specify the type: file in a way that go-swagger will understand).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants