Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8497

UI5 File uploading

$
0
0

Hello ,

 

Little help .

 

I am trying to upload a file(JSON) to UI5 application and want it to read the content but not able to do it

 

file1.jpg

 

 

getting the FileUploader object and checking its data() , it is mentioning in console that it is an object but when i parse it there is no success

file4.jpg

 

 

 

 

 

So i tried to see if anyhow i am able to make the upload operation with UI5 controllers

 

 

upload url is /fileSIM/data , fileSIM is the project name and data is the folder where file should be uploaded

 

file2.jpg

 

 

When the button is pressed calling the upload() function

 

file3.jpg

 

It is also giving undefined for upload() operation call and there is the error

 

"GET http://localhost:64460/fileSIM/data/jetty-dir.css  Uncaught TypeError: Cannot read property '1' of null "

 

 

I do not want to use general JS operation of file read and make use of UI5.

 

It should not be that difficult , i might be missing something very simple

 

 

 

-Ajay


Viewing all articles
Browse latest Browse all 8497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>