Re: [go-nuts] Re: Errors with uploading large files (> 1gb) - multipart

2017-12-09 Thread seth cohen
Excellent call, my friend. Apparently, `NextPart()` invalidates the previous parts. On Fri, Dec 8, 2017 at 6:01 PM, Dave Cheney wrote: > Perhaps calling next part is consuming reader, so when you break at once > you hit io.EOF, the reader you memorised has been consumed. > >

[go-nuts] Re: Errors with uploading large files (> 1gb) - multipart

2017-12-08 Thread seth cohen
Dave, thanks for the reply! That bit is OK... you are correct that it won't break out of the loop until io.EOF. It comes across the uploadfile part first and sets the variable accordingly. Then once, looped through all parts, it breaks the loop and I try to copy the file - wherein I run into