Page 1 of 1

How to get the object of the file imput element

Posted: Wed Feb 15, 2017 7:39 am
by Deon

Hi
I need to get the object of the input component of file type and not the value.

With the input in HTML this code works.
var fileChooser = document.getElementById('file-chooser');

This returns the file object.
But I want use the Appery input component outside of HTML

I tried this code but it does not work.
var fileChooser = Apperyio("file-chooser");
Thank you


How to get the object of the file imput element

Posted: Wed Feb 15, 2017 9:38 am
by Serhii Kulibaba

Hello Deon,

Please clarify, what do you mean with "use the Appery input component outside of HTML"? Where is it located?