ember-filepicker
v0.0.13
Published
Provides a shim to the file upload service library filepicker.io
Downloads
4
Maintainers
Readme
Ember Filepicker
(This is a WIP and the documentation is not complete)
This addon provides a shim to the file upload service library filepicker.io
Steps to Use
- Install the addon
ember install ember-filepicker
- Add the API key config/environment.js file
filepicker: {
key: '<filepicker.io API key>'
}
- Add the filepicker component to your template
{{ember-filepicker onSelection=(action 'fileSelected')}}
- Handle the returned list of uploaded files in the '
fileSelected
' action
actions: {
fileSelected(file) {
// 'file' will contain a list of files if multiple mode is enabled
}
}