Skip to content

Releases: kartik-v/bootstrap-fileinput

Version 5.5.4

09 Apr 03:32
Compare
Choose a tag to compare

Date: 09-Apr-2024

  • (bug #1858): Correct Plugin Options & Themes Initialization.
  • (bug #1857): Correct Finnish Translations.
  • (enh #1833): Fix compliance with CSP not having unsafe-inline policy.

Version 5.5.3

11 Mar 07:28
Compare
Choose a tag to compare

Date: 11-Mar-2024

  • (enh #1856): Replace and fix deprecated jQuery methods.
  • (enh #1852): Create Basque Translations.
  • (enh #1851): Update Spanish Translations.
  • (enh #1850): Add maxMultipleFileSize feature check.
  • (enh #1847): Fix invalid attribute autocomplete for button.
  • (enh #1846): Update Finnish Translations.
  • (enh #1845): Copy & Paste files functionality (pasting enabled on the filename caption input element).
  • (enh #1842): Update German Translations.
  • (enh #1840): Update Hungarian Translations.
  • (enh #1836): Create Urdu Translations.
  • (enh #1825): Update fileinput.js overriding default options.
  • (bug #1822): Fix tiff parsing exceptions and convert filetype library to ES5.

Version 5.5.2

13 Oct 06:42
Compare
Choose a tag to compare

version 5.5.2

Date: 13-Oct-2022

  • (bug #1822): Correct file type tokenizer parsing.
  • (enh #1821): Update Indonesian Translations.
  • (enh #1819): Update Chinese Translations.
  • (enh #1817): Fix invalid signature detection.

Version 5.5.1

17 Aug 07:57
Compare
Choose a tag to compare

Date: 17-Aug-2022

  • (enh #1809, #1810): Correct minified plugins file "filetype.min.js".
  • (enh #1803): Add image/vnd.dwg signature.
  • (bug #1802): Fix SassError Invalid parent selector.
  • (bug #1782): Fix loading indicator reset for same file selected again.

Version 5.5.0

29 Jun 07:09
Compare
Choose a tag to compare

Major Release: BC Breaking

Date: 29-Jun-2022

  • (enh #1800): Styling enhancements for thumbnail content and rotatable images.
  • (enh #1799): Correct translations containing {maxSize}, {minSize}, {size}.
  • (enh #1796): Add two new Font Awesome 6.x themes.
    • fa6
    • explorer-fa6
  • (enh #1795): Refactoring and renaming of all Font Awesome based themes.
    • Refactor and rename fa theme to fa4
    • Refactor and rename fas theme to fa5
    • Refactor and rename explorer-fa theme to explorer-fa4
    • Refactor and rename explorer-fas theme to explorer-fa5
  • (enh #1792): Advanced file mime type detection for preview irrespective of file extension.
    • Load the following new plugin files before fileinput.min.js
<!-- buffer.min.js and filetype.min.js are necessary in the order listed for advanced mime type parsing and more correct
     preview. This is a feature available since v5.5.0 and is needed if you want to ensure file mime type is parsed 
     correctly even if the local file's extension is named incorrectly. This will ensure more correct preview of the
     selected file (note: this will involve a small processing overhead in scanning of file contents locally). -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.5.0/js/plugins/buffer.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.5.0/js/plugins/filetype.min.js" type="text/javascript"></script>
  • (enh #1791): Enhance preview update automatically when addToStack is called.

  • (enh #1785): Image rotation button action feature in thumbnail and zoom.

    • New property rotatableFileExtensions defaults to ['jpg', 'jpeg', 'png', 'gif'],
    • New properties in fileActionSettings (rotateIcon, rotateTitle, rotateClass)
    • New properties previewZoomButtonIcons.rotate, previewZoomButtonClasses.rotate and previewZoomButtonTitles.rotate
  • (enh #1788): Enhancements to showUserError method.

    • New 3rd parameter retainErrorHistory which allows you to retain previous errors (defaults to false)
var $input = $('#file-input-id');
$input.on('fileuploaderror', function(event, data) {
  var userMessage = 'We could not process the upload because of a server error.',
      retainErrorHistory = true; // whether to retain error history
  // 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, retainErrorHistory);

  // 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 #1694): Thumbnail of images only but detailed preview/iconic view of all other files.
    • New property alwaysPreviewFileExtensions - setup as an array list of extensions whose content will always be shown in preview (irrespective of preferIconPreview or previewFileIconSettings which will be used to control icon preview for configured types).

Version 5.2.8

10 May 14:25
Compare
Choose a tag to compare

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.

Version 5.2.7

17 Dec 16:43
Compare
Choose a tag to compare

Date: 17-Dec-2021

  • (enh #1767): Enhance ajax task queuing to validate maxAjaxThreads correctly.
    • enhancement for async uploads (with correct firing of events filebatchuploadsuccess and filebatchuploaderror)
  • (enh #1765): Map missing icons in gly theme.
  • (enh #1763): Preview centering enhancements for thumbnail, object and zoom content.
  • (bug #1758): Correct bootstrap module parser.

Version 5.2.6

23 Sep 15:39
Compare
Choose a tag to compare

Date: 23-Sep-2021

  • (bug #1758): Correct bootstrap module parser.
  • (enh #1756): Replace getLoadingUrl to a new $h.getZoomPlaceholder method.

Version 5.2.5

19 Sep 13:06
Compare
Choose a tag to compare

Date: 19-Sep-2021

  • (enh #1755): Simplify NPM module handling.

Version 5.2.4

18 Sep 17:20
Compare
Choose a tag to compare

Date: 17-Sep-2021

  • (enh #1754): Default button styling & Explorer theme enhancements.
  • (enh #1753): Enhance NPM module handling.
  • (enh #1752): Enhance exif properties validation .
  • (enh #1750): Enhancements to file caption icon and input group styling.
  • (enh #1744): Enhance zoom cache temporary url to use loader image.
  • (enh #1741): Fix zoom cache 404 console warnings.