SAPUI5 bugs & workaround
Published in
1 min readMay 14, 2019
UploadCollection upload the old attachment again
Issue:
App layout: Worklist view > Details view
In details view, the app create new entity with attachment upload using sap.m.UploadCollection
In the same session, the UploadCollection is used to upload again. It upload all old attachment of the last time it was used, even though the UI does not display the old items. Which is not correct.
Solution:
in “uploadComplete” event of UploadCollection, clean all the “false” pending upload items by using:
oUploadCollection.removeAllAggregation(“item”);