1.0.0 • Published 8 years ago

ember-jq-fileupload v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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:

autoUpload

bitrateInterval

dataType

dropZone

fileInput

forceIframeTransport

formAcceptCharset

formData

initialIframeSrc

limitConcurrentUploads

limitMultiFileUploadSize

limitMultiFileUploadSizeOverhead

maxChunkSize

multipart

paramName

pasteZone

postMessage

progressInterval

replaceFileInput

recalculateProgress

redirect

redirectParamName

sequentialUploads

singleFileUploads

type

url

uploadedBytes

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