In the implementation of the HTTP service, I allow the download of the multipart http file using the PUT method.
However, before writing everything to the hard drive, I would like to check if the file size is normal. For instance. Must be less than 50 MB.
How to do it in go?
lang2 source
share