cancel
Showing results for 
Search instead for 
Did you mean: 

404 Not Found error while uploading image using XSJS file as URL

Kishore
Participant
0 Kudos

Hello,

I am creating a UI5 application which uses XSJS file to upload the image to HANA in SAP Cloud Platform.

Below are the steps I have done.

1. Created a table with two fields (Image name and Image content (BLOB) in SAP Cloud Platform.

2. Connected the system using Eclipse IDE and created a UI5 application.

3.File contains XML View, Controller file, XSJS, XSAPP and XSACCESS files.

4. I used FileUploader control to upload the file. In the controller, I am passing the XSJS path to uploader method.

5. I am running the application from Eclipse IDE and getting HTTP 404 error for XSJS file.

Please suggest what is missing here.

Attached the error and project structure and file details.

View.xml

Controller.js

xsaccess

xsjs file

Console:

Thanks,

Kishore.

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

You are running the app on localhost, therefore the local server only points to your WebContent folder I assume. Because of that the xsjs service cannot be reached, because it is not part of that folder. Independent of that, the service would not be able to execute on localhost, cause it uses server side HANA XSJS.