Skip to content

Version 5.2.8

Compare
Choose a tag to compare
@kartik-v kartik-v released this 10 May 14:25
· 54 commits to master since this release

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 event fileusererror.
    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); 
});
  • (enh #1777): Ensure alt property for image is applied via intial preview config if set.
  • (bug #1775): Correct syntax error for Danish translations.
  • (bug #1773): Fix blank preview issue for large files > maxFilePreviewSize.
  • (enh #1771): Human readable sizes in messages like msgSizeTooLarge.