Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

how i could know when all the files have been finished uploading #13

Open
lingyulin opened this issue Mar 25, 2014 · 0 comments
Open

how i could know when all the files have been finished uploading #13

lingyulin opened this issue Mar 25, 2014 · 0 comments

Comments

@lingyulin
Copy link

how I could know when all the files have been finished uploading
or how to know how many files are beeing uploading

int fileCount = ??;
int i;
final Object obj = new Object();
req.uploadHandler(new Handler() {
@OverRide
public void handle(HttpServerFileUpload event) {
upload.streamToFileSystem(...);
i++;
if(fileCount == i)
obj.notify();
}
});
synchronized(obj){
obj.wait();
}
//all the files has been finished uploading

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant