on 01-14-2022 6:17 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.