diff --git a/README.md b/README.md index 0676b68..0e75bb4 100644 --- a/README.md +++ b/README.md @@ -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).' } }); ``` @@ -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!'); +}); ```