Skip to Content

Upload file to HANA server directory

May 10, 2017 at 02:27 PM


avatar image

How can I create directory on HANA server to upload local file into there.

I am using SAPUI5 and xsjs to upload shapefile to hana table. The first step I would like to upload local file to HANA server. The second thing is to use statement below to import data:

FROM  [file_path] ....

In other words how to create directory IMPORT statement recognize it.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Thomas Jung
May 15, 2017 at 12:53 PM

As a security feature, XSJS in XSC is not allowed to write to the file system at all. In XSA you can write to the file system, but keep in mind its the XSA Runtime file system (/hana/shared/<SID>/xs/) which might not even be on the same host as the HANA DB itself.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Please do not forget to mention: modules have no write access to other module-directories (in XSA). E.G.: if you are using node.js as a JS-Module, you have no permission to write to the web-module and vice versa.

There is no workaround for this ... feature yet.