You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where do you draw the line? Just content type? Content type and disposition? And Filename? All permutations thereof? Method for each?
Everybody's opinions on the most useful parts vary, I'm sure.
If you come back with some data suggesting that most users need a certain API which we don't provide and everybody is doing a tedious thing we could make easier, then I think we can make changes.
Please answer these questions before submitting your issue. Thanks!
go version
)?Go 1.6.2
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
I used mime/multipart CreateFormFile but was unable to set the Content-Type for the part.
Content-Disposition: form-data; name="photo"; filename="photo.jpg"
Content-Type: image/jpeg
xxxxxxxxxxxxxxxxxxxxxxx
Content-Disposition: form-data; name="photo"; filename="photo.jpg"
Content-Type: application/octet-stream
xxxxxxxxxxxxxxxxxxxxxxx
The text was updated successfully, but these errors were encountered: