summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-05-11 16:49:19 +0300
committerPekka Hyvönen <pekka@vaadin.com>2017-05-11 16:49:19 +0300
commitbda8acb85610f1532b9f11a8a9530c694051c2d9 (patch)
treec541bf0a3a12989e12c8a840bb001c671f77ab4a /client/src
parent8591ce8debbdd56c0f52b9fcca4346922282d5f7 (diff)
downloadvaadin-framework-bda8acb85610f1532b9f11a8a9530c694051c2d9.tar.gz
vaadin-framework-bda8acb85610f1532b9f11a8a9530c694051c2d9.zip
Poll server for changes at the end of each file upload (#9300)
* Poll server for changes at the end of each file upload
Diffstat (limited to 'client/src')
-rw-r--r--client/src/main/java/com/vaadin/client/extensions/FileDropTargetConnector.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/extensions/FileDropTargetConnector.java b/client/src/main/java/com/vaadin/client/extensions/FileDropTargetConnector.java
index f496e90d7f..df236b6072 100644
--- a/client/src/main/java/com/vaadin/client/extensions/FileDropTargetConnector.java
+++ b/client/src/main/java/com/vaadin/client/extensions/FileDropTargetConnector.java
@@ -90,6 +90,8 @@ public class FileDropTargetConnector extends DropTargetExtensionConnector {
FileUploadXHR xhr = (FileUploadXHR) FileUploadXHR.create();
xhr.setOnReadyStateChange(xmlHttpRequest -> {
if (xmlHttpRequest.getReadyState() == XMLHttpRequest.DONE) {
+ // Poll server for changes
+ getRpcProxy(FileDropTargetRpc.class).poll();
uploading = false;
uploadNextFile();
xmlHttpRequest.clearOnReadyStateChange();