Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大文件上传:文件大小,线程数量支持配置 #30

Open
johnicesea opened this issue Jan 24, 2019 · 0 comments
Open

大文件上传:文件大小,线程数量支持配置 #30

johnicesea opened this issue Jan 24, 2019 · 0 comments
Labels

Comments

@johnicesea
Copy link

com.alipay.rdf.file.interfaces.FileStorage#upload

调用这个方法,当超过阈值时,会触发多线程上传,现在代码中写死了5线程,10m大小,期望可配置

        uploadFileRequest.setUploadFile(srcPath);
        uploadFileRequest.setTaskNum(5);
        uploadFileRequest.setPartSize(10 * 1024 * 1024);
        uploadFileRequest.setEnableCheckpoint(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants