Re: [go-nuts] multipart/form-data and file size

2017-02-06 Thread Jesper Louis Andersen
I think it is a good idea. The only thing you should check before going for it is what other clients are doing. Some times what is in the RFC is not what has been implemented in reality. This can mean that if you start following the RFC spec, you end up breaking some clients in the process, which c

[go-nuts] multipart/form-data and file size

2017-02-06 Thread Manlio Perillo
Hi. I have noted that the implementation of multipart.Reader.ReadForm *knows* the size of a file, but it just discards it. Isn't it better if it make it available as a field in the FileHeader or, probably better as an additional Content-Length header? RFC 7578 says "The multipart/form-data me