问题
How to check dropbox progress on large files?
I'm trying to upload a 1.66 gb file to dropbox using core-api and Java. It is taking an extremely long time, (nearly 30 min) and I want to find the progress of the upload. This is my code for uploading:
DbxEntry.File uploadedFile = client.uploadFile("/BIGFILE.zip",
DbxWriteMode.add(), finalInputFile.length(), inputStream);
回答1:
Perhaps it can be achieved by wrapping the InputStream in a
ProgressMonitorInputStream. But make sure you do not block the Event Dispatch Thread, or it will freeze until completion.
See How to Use Progress Bars for details.
来源:https://stackoverflow.com/questions/20873570/check-dropbox-progress-on-large-files