Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

file extension error message and event #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ $('.dropify').dropify({
'minHeight': 'The image height is too small ({{ value }}}px min).',
'maxHeight': 'The image height is too big ({{ value }}px max).',
'imageFormat': 'The image format is not allowed ({{ value }} only).'
'fileExtension': 'The file is not allowed ({{ value }} only).'
}
});
```
Expand Down Expand Up @@ -273,4 +274,7 @@ drEvent.on('dropify.error.maxHeight', function(event, element){
drEvent.on('dropify.error.imageFormat', function(event, element){
alert('Image format error message!');
});
drEvent.on('dropify.error.fileExtension', function(event, element){
alert('File extension error message!');
});
```