cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Drag and Drop area for sap.m.upload.UploadSet control

parab_neha
Explorer
0 Kudos
702

Hello ,

In SAPUI5, for sap.m.upload.UploadSet , is it possible to remove Drag and Drop Area , (empty white area which says Drop files to upload, or use the "Upload" button) ? I want it to look like Fileuploader without the drag and drop.

UploadSet

Fileuploader

Thanks,

Neha

View Entire Topic
shubham_c
Participant
0 Kudos

Hi Neha,

Try this,

this.getView().byId("UploadSet").addDelegate({
ondragenter: function (oEvent) {
oEvent.stopPropagation()
},
ondragover: function (oEvent) {
oEvent.stopPropagation()
},
ondrop: function (oEvent) {
oEvent.stopPropagation()
}
}, true);

Regards,

Shubham C

parab_neha
Explorer
0 Kudos

Thanks Shubham for your reply, I have already tried this. This stops user from drag and drop. But the white area with note " Drop files to upload, or use the "Upload" button" remains. I need solution to remove that area as well.

Thanks ,

Neha

shubham_c
Participant
0 Kudos

Hi Neha ,

 noDataText=" "    noDataDescription=" " 

set this two properties of upload set blank with space to remove the text for upload.

hope it will work for you.

Reagrds,

Shubham C