Comments (3)
I've realised thats not possible and the payload would have to be multipart
and I can get that to bind now however when I then try to access files by invoking the multipartreader again it throws an error I think because the binder has already read the body and assigned the Multipartform property
from binding.
OK I have got it binding and I can access the files. However when you read the form values and assign the Multipartform property you reading it all in one go. Would you accept a PR to use r.MultipartReader()
that way it doesnt store the memory temporarily to disk and should improve perf if people are uploading big files
from binding.
Ah my mistake you are using r.MultipartReader
but call ReadForm up to 10mb instead of calling NextPart
from binding.
Related Issues (20)
- Expose *Binder interface for more byte oriented payloads HOT 2
- Feature request: Content-Type constraints HOT 1
- Re-thinking the binding package HOT 7
- Handling JSON arrays HOT 4
- template errors HOT 1
- 400 instead of 422 HOT 8
- Ability to control the HTTP error codes HOT 1
- autobindings to automatically create FieldMap functions for your structs HOT 1
- binding.Field.Required = true, ignored for struct fields. HOT 4
- JSON file as opposed to HTTPRequest? HOT 1
- Why not use govalidator internally? HOT 1
- Customise error message HOT 7
- Required error changed HOT 1
- Should FieldSpec.Binder have higher precedence than Binder.Bind?
- Errors object passed to Validate does not contain errors accumulated during Binding
- Automatic decoding of string HOT 1
- Best practice for operating on slices of data and keeping context HOT 4
- Binding Custom Types by Specifying Binder Func Does Not Work HOT 1
- [bug] error http: multipart handled by ParseMultipartForm if parse form before call binding.Bind HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binding.