Uploader file content

Hi.

Is there a way to the content of a file I just added to the uploader? In my app, users can import an xml file and edit the data before adding it to the system.

To do this, I’ve been uploading the file temporarily to the server, then retrieving it (a leftover code from before switching to webix).

I’m able to get the file object with onAfterFileAdd but I can’t seem to find the file contents while browsing the object. Everything I’ve found in the webix documentation only seems to show how to get the file object, which doesn’t have what I need.

You can use FileReader API ( HTML5 API, not related to Webix )

FileReader can be used to read data from any data blob, including the one in file object.

Worked perfectly, cheers.