Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

UI5 FileUpload - how to access structured data returned by the server

$
0
0

Hi all,

I'm developing a web application on UI5, where users will upload files to the server.

The standard behavior works ok, the server side is implemented as a Java based REST service.

However, I need the UI5 layer to be aware of the server-side id of the uploaded file.

Using this id, a further service call must be performed to specify additional information on the uploaded file.

 

As far as I can see from the UI5 docs, the FileUpload control only allows access to the body element of the returned Response.

I'd like to return information to the client in a structured way e.g. JSON, not in an HTML page.

Such returned data should be accessed from within the "uploadComplete" event handler of the FileUploader control.

 

Can this be achieved?

Thanks, regards

Vincenzo


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

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