td
td copied to clipboard
uploader: compute part size automatically to prevent FILE_PARTS_INVALID
Automatic compute part size for big files
Description
At this moment, if you send a large file (1gb+) with uploader default settings, we will get error upload part: send upload part 0 RPC: rpcDoRequest: rpc error code 400: FILE_PARTS_INVALID. This can be fixed by Uploader.WithPartSize(524288).
It would be nice if the uploader itself calculated the optimal part size.