- added option
maxFileSizefor specyfying max file size available for upload, in bytes. Use 0 for turning it off. - added option
maxUploadedItemsfor specyfying max item count. Default is set to 10, use 0 for turning it off. - added new emited event
errorwith tokenthis.errorMsg, which is called everytime when some error shows up from when you put some files on dropzone. - added options
allowedFileTypesErrorMsg,maxUploadedItemsErrorMsgandmaxFileSizeErrorMsgwith token__FILENAME__, where you are able to specify emited error msg. - Added indexOf polyfil for IE8 so now it should work in ie8 too, i need to test it..
- fixed bug when updating default theme (usually by error msg)
- fixed state names and state messages
- refactored js
- refactored API - now it is more using friendly and more error proof
- changed methods of rendering and updating theme
- a little performace savings
- default theme is generated and stored by init. Customizing by
Dropzone.customizeTemplate()generate new template and replace default template in storage. When youDropzone.show()orDropzone.hide(), script use stored template and will not generate template again. OnDropzone.updateState()it only makes changes in rendered DOM, not in stored template.
- refactored js
- Dropzone can now run multiple instances on one page
- Every Dropzone object instance is now marked with it's own generated ID
- Refactored object Options
- added optional setting
allowedFileTypesto Options - xhr from uploaded files are stored also in
xhrResponseArrayarray, since uploading another file/files on same Dropzone instance - updated Readme.md
- Fixed reserved names
- Added back-end api json
- JSLinted a index.js file a bit
- Fixed previous merge
- Input file is now reseting
- Test if I get ohter status than 200 in response from server
- Error state is now reversible to default state on click
### 1.1.0
- Fixed state templates issues
- Added
Dropzone.stateTemplates()Dropzone.templateStates() function - Improved example.html to show new features
- First public release