reset the has directory flag
Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
This commit is contained in:
@@ -108,6 +108,8 @@ public class UploadHandler implements StreamVariable, Receiver, SucceededListene
|
|||||||
public OutputStream receiveUpload(final String fileName, final String mimeType) {
|
public OutputStream receiveUpload(final String fileName, final String mimeType) {
|
||||||
this.fileName = fileName;
|
this.fileName = fileName;
|
||||||
this.mimeType = mimeType;
|
this.mimeType = mimeType;
|
||||||
|
//reset has directory flag before upload
|
||||||
|
view.setHasDirectory(false);
|
||||||
try {
|
try {
|
||||||
if (view.validate()) {
|
if (view.validate()) {
|
||||||
if (view.checkForDuplicate(fileName)) {
|
if (view.checkForDuplicate(fileName)) {
|
||||||
|
|||||||
@@ -633,4 +633,8 @@ public class UploadLayout extends VerticalLayout {
|
|||||||
return uiNotification;
|
return uiNotification;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setHasDirectory(Boolean hasDirectory) {
|
||||||
|
this.hasDirectory = hasDirectory;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user