You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: