Am 29.08.2017 um 21:40 schrieb Andrew:
Go 1.9 has "The new |FileHeader.Size|
<https://golang.org/pkg/mime/multipart/#FileHeader.Size> field describes
the size of a file in a multipart message."
Suppose I upload multiple files using <input type="file" name="images"
*multiple*>
Can I use FileHeader.Size to limit *each* uploaded file size? Or there's
other ways?
As far as I understand this field, it does not limit anything. It is a
RO property of the multipart.FileHeader. If your request has multiple
parts, there will be a multipart.FileHeader for each. You don't set
them, you read them.
What is it you are trying to do?
Lutz
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.