Version 5.2.8
Date: 10-May-2022
- (enh #1787): Enhance image size validation messages.
- (enh #1786): Correct Uzbek Cyrillic Translation file name.
- (enh #1784): Correct documentation for
layoutTemplates.fileIcon
. - (bug #1783): Correct image size validation checks (for min and max width/height).
- (enh #1782): Correct loading indicator reset for file selection.
- (bug #1780): Correct
autoReplace
behavior to clear already uploaded thumbnails. - (enh #1779): New plugin method
showUserError
and new eventfileusererror
.
Usage:
var $input = $('#file-input-id');
$input.on('fileuploaderror', function(event, data) {
var userMessage = 'We could not process the upload because of a server error.';
// to show error specific to each file pass `data` as received above (the `data` object must contain the `fileId` property)
$input.fileinput('showUserError', userMessage, data);
// to show a constant global error not specific to each file do not pass `data` (uncomment below line to achieve this)
// $input.fileinput('showUserError', userMessage);
});