Skip to Content
0
Aug 15, 2018 at 07:27 AM

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

403 Views Last edit Aug 15, 2018 at 02:21 PM 2 rev

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.

Attachments

view.jpg (76.0 kB)
controller.jpg (90.9 kB)
xsaccess.jpg (58.1 kB)
xsjs.jpg (92.2 kB)
console.jpg (90.0 kB)