update the file upload to io.Pipe