Skip to Content

UploadCollection is not firing any Odata request call to backend on Delete file

Mar 10, 2017 at 04:31 AM


avatar image

Hi All,

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 add a file, 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 .

Sap.ui.version = 1.44.4

Thanks in advance,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

harish vyas Aug 18, 2017 at 11:15 AM

Hello Avinash,

I am using UploadCollection UI element to upload the attachment but my CREATE_STREAM method is not getting called while adding the attachment.

XML View:

<UploadCollection id="UploadCollection" maximumFilenameLength="55" maximumFileSize="10" multiple="false" sameFilenameAllowed="false" showSeparators="All" noDataText='No Attachment found' change="onChange" instantUpload="true" uploadUrl="/sap/opu/odata/sap/ZPROJ_DNT_ATTACHMENT_SRV/ZENT_ATTACHMNTSet"> </UploadCollection>


OnChange method:

Have set the value of Token/SLUG/ContentType, but Create_stream is not getting call.

Will it be possible for you to share your code so that I can understand how this UI element works.



10 |10000 characters needed characters left characters exceeded