uncommented submit from for D&D

This commit is contained in:
Francesco Mangiacrapa 2024-08-02 17:13:37 +02:00
parent 4a3f31a0d7
commit 9439ffa8c8
1 changed files with 18 additions and 18 deletions

View File

@ -672,24 +672,24 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
}
// xhr.send(formdata);
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::addNewSubmitToMonitor(Ljava/lang/String;)(uploadUUID);
//
// if(numFolder>0){
// var msg;
// if(numFolder==files.length){
// msg = "Is not possible to upload a folder";
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
// return;
// }
//
// var msg = "Ignored ";
// msg += numFolder > 1? numFolder+" folders": numFolder+" folder";
// msg+= " during upload";
// console.log(msg);
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
// }
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::reset()();
xhr.send(formdata);
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::addNewSubmitToMonitor(Ljava/lang/String;)(uploadUUID);
if(numFolder>0){
var msg;
if(numFolder==files.length){
msg = "Is not possible to upload a folder";
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
return;
}
var msg = "Ignored ";
msg += numFolder > 1? numFolder+" folders": numFolder+" folder";
msg+= " during upload";
console.log(msg);
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
}
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::reset()();
});