https://github.com/niceue/nice-uploader
Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.
https://github.com/niceue/nice-uploader
Last synced: about 1 year ago
JSON representation
Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.
- Host: GitHub
- URL: https://github.com/niceue/nice-uploader
- Owner: niceue
- License: mit
- Created: 2013-07-16T08:56:13.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-23T15:25:21.000Z (over 11 years ago)
- Last Synced: 2025-03-27T08:48:21.920Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://niceue.com/uploader/
- Size: 789 KB
- Stars: 47
- Watchers: 8
- Forks: 24
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Uploader
Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.
### Usage
Include resources:
``` html
```
Initialization:
``` js
$("#upload_btn").uploader({
action: 'upload.php',
onSuccess: function(){
//do something..
}
});
```
### Documention
[简体中文](http://niceue.com/uploader/)
### API
- `mode`: "html5"
- `action`: ""
- `name`: "file"
- `formData`: null `{object|function}`
- `multiple`: false
- `auto`: true
- `showQueue`: false
- `fileSizeLimit`: 0
- `fileTypeDesc`: ""
- `fileTypeExts`: ""
- `onInit`: noop
- `onClearQueue`: noop
- `onSelected`: noop
- `onCancel`: noop
- `onError`: noop
- `onStart`: noop
- `onProgress`: noop
- `onSuccess`: noop
- `onComplete`: noop
- `onAllComplete`: noop
- `onMouseOver`: noop
- `onMouseOut`: noop
- `onMouseClick`: noop
- `onAddQueue`: default function
##### Begin upload
`$("#upload_btn").uploader("start");`
##### Cancel upload first file
`$("#upload_btn").uploader("cancel", 0);`
##### Cancel upload all files
`$("#upload_btn").uploader("cancel", "*");`
### Dependencies
[jQuery 1.7+](http://jquery.com)
### Browser Support
* IE6+
* Chrome
* Safari 4+
* Firefox 3.5+
* Opera
### Bugs / Contributions
- [Report a bug](https://github.com/niceue/uploader/issues)
- To contribute or send an idea, github message me or fork the project
### Build
Uploader use [UglifyJS2](https://github.com/mishoo/UglifyJS)
you should have installed [nodejs](nodejs.org) and run `npm install uglify-js -g`.
### License
[MIT License](https://github.com/niceue/uploader/blob/master/LICENSE.txt).