openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

UploadCollection with instantupload=true, is not firing any Odata request call to backend on Delete file

Open Avinash-DM opened this issue 9 years ago • 3 comments

OpenUI5 version: 1.44.4

Browser/version (+device/version): Chrom latest Any other tested browsers/devices(OK/FAIL): Fail

I am trying to upload and delete files from upload collection control with instantUpload = true.Here what i observed is when i am clicking on add button of uploadcollection to add files and select it , it fires odata request to post the file, but with delete button to delete the file is not making any odata call request , So is this the expected behaviour or is it something prerequisite i need to take care for delete button to fire odata re request??? , please help me here .

Thanks, Avinash

Avinash-DM avatar Mar 09 '17 17:03 Avinash-DM

Hi @Avinash-DM, Thank you for your question. I have created an internal incident: 1770072479 Regards, Marin

marinparushev avatar Mar 13 '17 12:03 marinparushev

Hello @Avinash-DM , thanks for the question. In short: yes this is the expected behavior. In case a file is selected the restful request is triggered directly. This is not a odata based request. It is just a HTTP request. In case of delete, this is not handled by the control itself, because the control can not know the backend and how the delete call needs to be done.

In case a deletion or rename action is triggered, the consuming application needs to take care about to handle the action and ensure a consistent data model.

Best regards,

Oli..

GeneralDuke avatar Mar 13 '17 12:03 GeneralDuke

Hi Oli,

Thanks for the response.

Avinash-DM avatar Mar 13 '17 13:03 Avinash-DM