This adds a new component – a button that fires a system file picker and has an event
onFilesPicked, the enclosing component (or controller) can subscribe to it.
Note that you probably shouldn’t use this component if you need to upload picked files directly to the server. In this case you should use upload mixin or probably uppy-upload mixin that was introduced by @martin-brennan recently.
pick-files-button component can be useful, for example, when you’re going to:
- Read file content and show it on the page
- Parse data from a file and add it to the Ember-Data store
The first usage of this component will be in Data Explorer (there we put data from file to the Ember store).
Sadly, tests are skipped. I was able to trigger an uploading event in tests, but for some reason when running tests the component receives an empty list of files. I couldn’t make it work, I’m going to revisit these tests later.