Skip to content

Commit

Permalink
v1.3.0 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbeefeater committed Oct 31, 2016
1 parent 8de1dd8 commit b1bc13c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
<input type="file" id="ssi-uploader" name="myInputName">

//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');
}
})
```
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---

Expand Down

0 comments on commit b1bc13c

Please sign in to comment.