I want to provide a POST endpoint on my web server to upload files directly to S3.
The files are small (never larger than 3MB). The problem I’m running into is that I can’t get the exact length needed for bucket.PutReader given just the multipart.File without reading the whole thing to get it.
What is the idiomatic way of getting the length of a multipart.File for usage with PutReader?
Thanks,
Andy