Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
This commit is contained in:
asharani-murugesh
2016-02-25 17:43:28 +01:00
parent e3862cee74
commit 0b5c0673b1

View File

@@ -191,12 +191,13 @@ public class UploadLayout extends VerticalLayout {
((WrapperTransferable) event.getTransferable()).getDraggedComponent();
final Html5File[] files = ((WrapperTransferable) event.getTransferable()).getFiles();
if (files != null) {
//reset the flag
hasDirectory = Boolean.FALSE;
for (final Html5File file : files) {
if (!isDirectory(file)) {
if (!checkForDuplicate(file.getFileName())) {
numberOfFileUploadsExpected.incrementAndGet();
file.setStreamVariable(createStreamVariable(file));
hasDirectory = Boolean.FALSE;
}
} else {
hasDirectory = Boolean.TRUE;