v1.5.1
- No breaking changes, but a lot of new stuff, improvements and fixes
- New event-driven API (see docs for Constructor and .insert() method)
- Events for Constructor:
afterUpload
- Events for
.insert()
:start
data
readEnd
progress
pause
continue
abort
uploaded
error
end
- Events for Constructor:
- New
isJSON
property - New callback in
.insert()
method:.onStart
- Triggered when upload is started and validations was successful
- New second argument in
.insert()
method:autoStart
{Boolean} - Start upload immediately. If set tofalse
, you need manually call.start()
method on returned class. Useful to set EventListeners, before starting upload
- New method on object returned from
.insert()
method:.pipe()
- Called with single argument:data
{String} - Base64 string (DataURL). Can be used for data modifications, like encryption (see #35) or any other
- Partly move core to EDP, to avoid using
.defer()
and.setTimeout()
- New collection callback
onBeforeRemove
, allows you to check user and file itself before removing it remove()
method now accepts second argument -callback
function- Important security updates
- Fix issue with empty file upload, now it ends with error:
400
,Can't upload empty file
interceptDownload
- now supports file's subversions (passed as third argument)- Overall fixes