cancel
Showing results for 
Search instead for 
Did you mean: 

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

avinashd_m
Participant

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,

Avinash

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member213219
Participant
0 Kudos

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>

Controller:

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.

Regards,

Harish

arienzner
Explorer
0 Kudos

Hi Haris,

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

BR
Alex

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?

Thanks