cancel
Showing results for 
Search instead for 
Did you mean: 

How to get file content to update to BTP Document Management Service using sap.m.upload.UploadSet?

jastinc
Explorer
0 Kudos

I'm trying to upload a file using sap.m.upload.UploadSet to BTP DMS.

Currently, I'm able to retrieve data / download files from DMS using API call.

But in upload, I'm not able to find how to get the file content (Binary) to be uploaded to DMS.

I wanted to do it like what i've done in postman. Can anyone tell me the way to get the file content when trying to upload from sap.m.upload.UploadSet?

former_member793231
Discoverer
0 Kudos

Hi Jastin, could you please share the code to retrieve data / download files from DMS using API call

Accepted Solutions (1)

Accepted Solutions (1)

jastinc
Explorer
0 Kudos

This issue has been resolved.

By using UploadSetItem's getFileObject(), it will return the binary format of the file to be uploaded and will be used is the dms payload.

Also, make sure csrf protection is set to false.

Answers (0)