-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from bluntelk/master
Javascript Events
- Loading branch information
Showing
3 changed files
with
47 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Javascript Events | ||
================= | ||
|
||
There are a few javascript events that get fired that can help you integrate your workflow. These Are: | ||
|
||
* jb.FileUpload.success | ||
* jb.FileUpload.error | ||
* jb.FileUpload.remove | ||
|
||
The Success event provide an extra object parameter that contains: | ||
|
||
{ | ||
filename: "some-image-name.jpg" | ||
filepath: "http://the.path.to.the/uploaded/image.ext" | ||
originalname: "original-image-name.ext" | ||
} | ||
|
||
The remove event provides a similar object, but with empty values. | ||
|
||
The error event provides the string error message as its additional parameter. |
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
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