ember-filepicker

0.0.13 • Public • Published

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

  1. Install the addon
ember install ember-filepicker
  1. Add the API key config/environment.js file
filepicker: {
  key: '<filepicker.io API key>'
}
  1. Add the filepicker component to your template
{{ember-filepicker onSelection=(action 'fileSelected')}}
  1. 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
  }
}

Package Sidebar

Install

npm i ember-filepicker

Weekly Downloads

1

Version

0.0.13

License

MIT

Last publish

Collaborators

  • kasunvp