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.
>
>
Perhaps calling next part is consuming reader, so when you break at once you
hit io.EOF, the reader you memorised has been consumed.
Again, just a guess, I’ve never used the multipart package in anger.
--
You received this message because you are subscribed to the Google Groups
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