Skip to content

abhilashlr/ember-jq-fileupload

Repository files navigation

Ember-jq-fileupload

Build Status NPM Version

This addon is an Ember wrapper on top of jquery file upload.

All options are enabled in this addon. Please raise a request if you would like to see any options missed out.

Usage:

{{file-upload }}

  • url is mandatory

Options available:

Callback methods available as sendActions:

'onFileuploadalways', 'onFileuploadchange', 'onFileuploadchunkalways', 'onFileuploadchunkdone', 'onFileuploadchunkfail', 'onFileuploadchunksend', 'onFileuploaddone', 'onFileuploaddragover', 'onFileuploaddrop', 'onFileuploadfail', 'onFileuploadprogress', 'onFileuploadprogressall', 'onFileuploadpaste', 'onFileuploadsend', 'onFileuploadstart', 'onFileuploadstop', 'onFileuploadsubmit', 'onFileuploadsuccess', 'onFileuploaderror', 'onFileuploadInit'

onFileuploadsuccess(e, data):

When data is being submitted, this callback is triggered on success.

onFileuploadInit(fileupload-instantiated-object, component-context):

This is triggered when the file upload component is rendered in place. Sends 2 properties with the file upload object and the component's current context. This could be useful for programatically stopping a file upload.

Installation

ember install ember-jq-fileupload

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Contributing

  • git clone this repository
  • npm install
  • bower install

About

Ember wrapper for jquery file upload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published