Support Questions
Find answers, ask questions, and share your expertise

SAP HANA XS File upload with UI5

SAP HANA XS File upload with UI5

Explorer

I am trying to implement a file upload in a UI5 application on a HANA XS Server. I am unable to find information, how to do that - somebody got an idea?

Thanks in advance.

1 REPLY 1

Re: SAP HANA XS File upload with UI5

New Contributor

Hi, @Saanvi Sharma. You can use the sap.m.UploadCollection control to provide the user interface and then you can post the content to the XSJS service and handle the saving there. Depending on the requirements, you can save it as a BLOB in the HANA Database. There's a SCN post about it too.

Kindly regards,
Henrique Mattos

[1] https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection
[2] https://blogs.sap.com/2016/09/01/upload-and-retrieve-image-using-sap-hana-xs-sap-ui5/