ember-semantic-ui-file-uploader

0.1.3 • Public • Published

ember-semantic-ui-file-uploader

A file uploader for emberjs

Install it with:

ember install ember-semantic-ui-file-uploader

And then, in your template:

{{file-input onUpload=(action "onUpload")}}

and in your controller or component:

actions: {
  onUpload(fileData) {

    console.log("called onUpload, filedata is", fileData);
    // note: fileData.result is the base64 string.

    this.set('fileData', fileData);
  }
}

Dependents (0)

Package Sidebar

Install

npm i ember-semantic-ui-file-uploader

Weekly Downloads

5

Version

0.1.3

License

MIT

Last publish

Collaborators

  • hugoruscitti