HTTP Multipart Form File -> S3 Bucket

43 views
Skip to first unread message

Andrew Bonventre

unread,
Jul 26, 2013, 7:09:32 PM7/26/13
to go...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages