From 73d4e770751a3d78f9f177c82b2aa8c7281ec77f 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: I2dc9b846e1c3ae123b26eac017082bea4ba6f7c3 --- client/src/com/vaadin/client/ui/VDragAndDropWrapper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src') 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