From b1bc13ca521e16b72e173d0acaac9a864d49fbc9 Mon Sep 17 00:00:00 2001 From: ssbeefeater Date: Mon, 31 Oct 2016 10:32:15 +0200 Subject: [PATCH] v1.3.0 beta --- CHANGELOG.md | 18 ++++++++++++++++-- README.md | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 280bc11..3ce226a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,27 @@ +## ssi-uploader v1.3.0-beta + * The input name is no more "files[]" but you need to add it in your input element.If no name is set, then the input name will be "files" + + ```javascript +//html + + +//js +$('#ssi-uploader').ssi_uploader(); + +//and in php +$_FILES ['myInputName'] ['name']; + ``` + ## ssi-uploader v1.1.0-beta * New option ignoreCallbackErrors (Boolean, default:false): If true the upload will continue normally even if there is an error in a callback function. If false the upload will aborted when it is possible and will console.log the errors. * New feature that it shows some details about the upload action (number of pending, number of completed and number of in progress files). * Fix a bug in multiple file upload. * Change the tooltip logic and some css. - * New method to throw custom in BeforeEachUpload callback by throwing an Error. + * New method to throw custom error message in BeforeEachUpload callback by throwing an Error. ```javascript $(input).ssi_uploader({url:"my/url/upload.php",beforeEachUpload:function(info,xhr){ if(info.name=='noImage.jpg'){ throw new Error('custom message'); } }) - ``` \ No newline at end of file + ``` diff --git a/README.md b/README.md index 10a9fb5..e029a89 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ An awesome jquery uploader. [See documentation](http://ssbeefeater.github.io/#ssi-uploader/documentation) -[Changelog](https://github.com/ssbeefeater/ssi-uploader/commit/33f8612ec276ad4ddc8c4a7ddd7e74e02abf09e9) +[Changelog](https://github.com/ssbeefeater/ssi-uploader/blob/master/CHANGELOG.md) ---