Skip to Content

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

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,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Haris,

      I don't know if your problem is already solved but did you set the x-csrf-token in the onChange function?


      Is the root problem here already solved?
      Because the uploadCollection is not firing any oData operation when deleting a file.
      Do I have to code this manually?