kartik-v/bootstrap-fileinput
An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.
v5.5.4
8.4M downloads/mo
#2272 most downloaded on Packagist
kartik-v/bootstrap-fileinput
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.4 years
Rarely documented
notes for 10 of 92 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
92 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
92 releases · May 2014 to Apr 2024Releases
latest 60 of 92-
v5.5.409 Apr 2024 -
v5.5.311 Mar 2024Release notes
Open source →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
maxMultipleFileSizefeature check. - (enh #1847): Fix invalid attribute
autocompletefor 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.
-
v5.5.213 Oct 2022 -
v5.5.117 Aug 2022 -
v5.5.029 Jun 2022Release notes
Open source →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.
fa6explorer-fa6
- (enh #1795): Refactoring and renaming of all Font Awesome based themes.
- Refactor and rename
fatheme tofa4 - Refactor and rename
fastheme tofa5 - Refactor and rename
explorer-fatheme toexplorer-fa4 - Refactor and rename
explorer-fastheme toexplorer-fa5
- Refactor and rename
- (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/[email protected]/js/plugins/buffer.min.js" type="text/javascript"></script> <script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected]/js/plugins/filetype.min.js" type="text/javascript"></script>
-
(enh #1791): Enhance preview update automatically when
addToStackis called. -
(enh #1785): Image rotation button action feature in thumbnail and zoom.
- New property
rotatableFileExtensionsdefaults to ['jpg', 'jpeg', 'png', 'gif'], - New properties in
fileActionSettings(rotateIcon,rotateTitle,rotateClass) - New properties
previewZoomButtonIcons.rotate,previewZoomButtonClasses.rotateandpreviewZoomButtonTitles.rotate
- New property
-
(enh #1788): Enhancements to
showUserErrormethod.- New 3rd parameter
retainErrorHistorywhich allows you to retain previous errors (defaults to false)
- New 3rd parameter
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 ofpreferIconPrevieworpreviewFileIconSettingswhich will be used to control icon preview for configured types).
- New property
-
v5.2.810 May 2022Release notes
Open source →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
autoReplacebehavior to clear already uploaded thumbnails. - (enh #1779): New plugin method
showUserErrorand 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); });
-
v5.2.717 Dec 2021Release notes
Open source →Date: 17-Dec-2021
- (enh #1767): Enhance ajax task queuing to validate
maxAjaxThreadscorrectly.- enhancement for async uploads (with correct firing of events
filebatchuploadsuccessandfilebatchuploaderror)
- enhancement for async uploads (with correct firing of events
- (enh #1765): Map missing icons in
glytheme. - (enh #1763): Preview centering enhancements for thumbnail, object and zoom content.
- (bug #1758): Correct bootstrap module parser.
- (enh #1767): Enhance ajax task queuing to validate
-
v5.2.623 Sep 2021 -
v5.2.519 Sep 2021 -
v5.2.418 Sep 2021Release notes
Open source →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.
-
v5.2.325 Jul 2021Nothing published for this version
-
v5.2.219 Jun 2021Nothing published for this version
-
v5.2.119 May 2021Nothing published for this version
-
v5.2.006 May 2021Nothing published for this version
-
v5.1.502 Mar 2021Nothing published for this version
-
v5.1.412 Jan 2021Nothing published for this version
-
v5.1.323 Oct 2020Nothing published for this version
-
v5.1.215 Jul 2020Nothing published for this version
-
v5.1.120 Jun 2020Nothing published for this version
-
5.1.011 Jun 2020Nothing published for this version
-
v5.0.902 Jun 2020Nothing published for this version
-
v5.0.813 Dec 2019Nothing published for this version
-
v5.0.717 Nov 2019Nothing published for this version
-
v5.0.611 Sep 2019Nothing published for this version
-
v5.0.523 Aug 2019Nothing published for this version
-
v5.0.430 Jun 2019Nothing published for this version
-
v5.0.312 May 2019Nothing published for this version
-
v5.0.218 Apr 2019Nothing published for this version
-
v5.0.126 Mar 2019Nothing published for this version
-
v5.0.024 Mar 2019Nothing published for this version
-
v4.5.321 Mar 2019Nothing published for this version
-
v4.5.203 Jan 2019Nothing published for this version
-
v4.5.125 Sep 2018Nothing published for this version
-
v4.5.030 Aug 2018Nothing published for this version
-
v4.4.925 Jul 2018Nothing published for this version
-
v4.4.811 Apr 2018Nothing published for this version
-
v4.4.722 Jan 2018Nothing published for this version
-
v4.4.613 Nov 2017Nothing published for this version
-
v4.4.501 Oct 2017Nothing published for this version
-
v4.4.421 Sep 2017Nothing published for this version
-
v4.4.327 Aug 2017Nothing published for this version
-
v4.4.224 Jun 2017Nothing published for this version
-
v4.4.125 May 2017Nothing published for this version
-
v4.4.013 May 2017Nothing published for this version
-
v4.3.902 Apr 2017Nothing published for this version
-
v4.3.821 Feb 2017Nothing published for this version
-
v4.3.712 Feb 2017Nothing published for this version
-
v4.3.617 Dec 2016Nothing published for this version
-
v4.3.520 Sep 2016Nothing published for this version
-
v4.3.407 Aug 2016Nothing published for this version
-
v4.3.309 Jul 2016Nothing published for this version
-
v4.3.211 Jun 2016Nothing published for this version
-
v4.3.128 Feb 2016Nothing published for this version
-
v4.3.025 Jan 2016Nothing published for this version
-
v4.2.921 Jan 2016Nothing published for this version
-
v4.2.818 Nov 2015Nothing published for this version
-
v4.2.713 Sep 2015Nothing published for this version
-
v4.2.626 Aug 2015Nothing published for this version
-
v4.2.526 Jul 2015Nothing published for this version
-
v4.2.422 Jul 2015Nothing published for this version