-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8de1dd8
commit b1bc13c
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
}) | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters