From 93a3ab592358e9cabe581b71a12d6c4b2a767e2b Mon Sep 17 00:00:00 2001 From: SlimenTunis Date: Thu, 5 Dec 2019 20:10:05 +0100 Subject: [PATCH] file extension error message and event You forgot to add them to readme file, so I had to search inside the code :p --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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!'); +}); ```