From 7946a939001ed6eacdce03b4a4e7c16b7430a8e6 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 6 Jul 2015 22:26:45 +0300 Subject: Keep a reference to the file we are uploading to keep IE10 happy (#18372) Change-Id: I480c37b051f0efb2b0d7b1c6922eb7479117b62c --- client/src/com/vaadin/client/ui/VDragAndDropWrapper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client') diff --git a/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java b/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java index defa27fbac..f3905f9e46 100644 --- a/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java +++ b/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java @@ -472,6 +472,9 @@ public class VDragAndDropWrapper extends VCustomComponent implements /*-{ this.setRequestHeader('Content-Type', 'multipart/form-data'); + // Seems like IE10 will loose the file if we don't keep a reference to it... + this.fileBeingUploaded = file; + this.send(file); }-*/; -- cgit v1.2.3