It is not clear how to use this component from the documentation:
- When are the events triggered? Is there an event which is triggered when a file has been selected?
- How do you access the uploaded files on the server?
- Is it possible to access files on the client side? I cannot see any properties associated with the DOM object.
I have a user-defined json file that is part of the configuration information for an app I am updating. I am migrating the configuration HTML script to use crayons to provide a consistent look’n’feel with other Freshdesk apps. In my previous version, I used the standard HTML INPUT type File box to specify the file to be uploaded, and accessed the FileList object to access individual files, and then used the HTML5 FileReader object to read the json file