td icon indicating copy to clipboard operation
td copied to clipboard

uploader: compute part size automatically to prevent FILE_PARTS_INVALID

Open borzovplus opened this issue 2 years ago • 0 comments

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.

borzovplus avatar Jul 16 '22 21:07 borzovplus