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

Will gin support multipart/mixed for uploading file? #2547

Open
wccsama opened this issue Nov 4, 2020 · 0 comments
Open

Will gin support multipart/mixed for uploading file? #2547

wccsama opened this issue Nov 4, 2020 · 0 comments

Comments

@wccsama
Copy link

wccsama commented Nov 4, 2020

Description

As the code showing in the binding.go, there is no multipart/mixed supported.

image

How to reproduce


Expectations

$curl -i -X POST http://127.0.0.1:9702/upload -F "upfile=@/Users/test/Desktop/test.png" -F "type=image" -H "Content-Type: multipart/mixed"

Actual result

	ErrNotMultipart = &ProtocolError{"request Content-Type isn't multipart/form-data"}

Environment

  • go version: 1.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant