ember-jq-fileupload
v1.0.0
Published
Simple and highly configurable ember wrapper for jquery file upload.
Downloads
12
Maintainers
Readme
Ember-jq-fileupload
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
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember 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 repositorynpm install
bower install