Releases: kartik-v/bootstrap-fileinput
Releases · kartik-v/bootstrap-fileinput
Version 4.3.3
Date: 09-Jul-2016
- (enh #706): Remove invalid files from filestack correctly for validation errors.
- (enh #704): Add grammatically correct "No files selected" message.
- (enh #702): Add files to stack correctly for max & min preview size validation.
- (bug #700): Fix custom preview icons to be displayed and validated correctly.
- (enh #698): Re-enable drag and drop support for IE Edge.
- (enh #695): Update Spanish Translations.
- (enh #680): Populate filestack for files greater than maxFilePreviewSize.
Version 4.3.2
Date: 11-Jun-2016
- (enh #674): Organize all themes in a separate
themes
folder. - (enh #666): Update sortable draggable selector.
- (enh #655): Include sass styling configuration.
- (enh #654): Update Spanish Translations.
- (enh #650, #676): Ability to configure browse button display and file select via zone click.
- New boolean property
showBrowse
that allows you to control the display of the browse button - New boolean property
browseOnZoneClick
that allows you to select a file:- for ajax uploads - by clicking on the preview drag/drop zone
- for form based/non-ajax uploads - by setting
defaultPreviewContent
and that will be clickable to browse files
- New string message property
dropZoneClickTitle
that will be appended to thedragZoneTitle
for ajax uploads whenbrowseOnZoneClick
istrue
. - New template
actionDrag
will be available withinlayoutTemplates
to configure your drag indicator markup.
- New boolean property
- (enh #647): Display file size in previews and templates.
- Enhancements to file preview icons (
other
template). - Simpler naming for files in locales and themes folders.
- (enh #643):Implement rearranging / sorting functionality for initial preview.
- Add ability to rearrange and sort thumbnails by drag & drop. This feature will use the Sortable plugin which will be included in the
js/plugins
folder. - This feature will be available only for initial preview thumbnails for both ajax and form uploads.
- New property for drag indicator and drag behavior configurations will be included in
fileActionSettings
:showDrag
dragIcon
dragClass
dragTitle
dragSettings
- Add ability to rearrange and sort thumbnails by drag & drop. This feature will use the Sortable plugin which will be included in the
- (enh #642): Reorganize JS code into proper folders. Following folders will be added/maintained
locales
: all translation JS files will be located herethemes
: all theme JS files will be located hereplugins
: third party JS plugins that will be used to work with bootstrap-fileinput
- (enh #641): Wrap readFile(index + 1) in a function to prevent 'unsafe-eval' blocking with CSP.
- (enh #640): Ability to theme and provide font awesome theme. New property
theme
added. - (enh #639): Add ability to just require package in nodejs
- (enh #636): File action enhancements.
- Zoom and Drag buttons will be shown as an additional file action buttons in addition to
upload
andremove
- New boolean properties
showZoom
,showDrag
,showRemove
,showUpload
are now added tofileActionSettings
to control display of these buttons - New properties
zoomIcon
,zoomClass
,zoomTitle
are available withinfileActionSettings
for controlling the zoom button styles and display. - New properties
dragIcon
,dragClass
,dragTitle
are available withinfileActionSettings
for controlling the drag indicator styles and display. - New properties
actionZoom
andactionDrag
are available withinlayoutTemplates
to configure the markup of the zoom and drag buttons.
- Zoom and Drag buttons will be shown as an additional file action buttons in addition to
- (enh #635): Various preview enhancements. Previews will be revamped with various functionality:
- Add ability to zoom every thumbnail to a modal preview. So all types of files (images, videos, pdf, text etc) can be previewed in a larger zoom dialog window.
- Automatic slideshow like interface for zoom preview modal. One can navigate left or right to view previous or next content in the preview. In addition to button navigation, keyboard navigation (via left/right arrow keys) is also available.
- Borderless maximized mode and Full Screen mode available for preview.
- Auto disable the previous or next button when the first or last file/image is reached.
- Now
initialPreview
can be setup MORE easier without writing or returning entire markup. Thus the new functionality will enable to use built inpreviewTemplates
. - A new boolean property
initialPreviewAsData
is available to control the above. If set totrue
, it will allow developers to now pass just the data withininitialPreview
(instead of complete markup) and the markup will be auto generated usingpreviewTemplates
. - New property
initialPreviewFileType
to set the default file type for initial preview. Defaults toimage
. Must be on of the keys infileTypeSettings
. - All the other settings can be controlled via
initialPreviewConfig
. The new properties available withininitialPreviewConfig
are:type
: OverrideinitialPreviewFileType
at global level and set a separate type for each file in the initial preview.previewAsData
: boolean property to override theinitialPreviewAsData
setting at global level
- New zoom preview control buttons:
prev
next
fullscreen
borderless
toggleheader
close
- The other new settings to control zoomed preview:
previewZoomSettings
: Will allow to set the CSS style (e.g. width, height and other CSS style settings) for each zoomed content type (i.e.image
,pdf
,video
etc.).previewZoomButtonIcons
: Ability to set the labels for previous, next, fullscreen, borderless, and close buttons.previewZoomButtonTitles
: Ability to set the titles for previous, next, fullscreen, borderless, and close buttons.previewZoomButtonClasses
: Ability to set the CSS classes for previous, next, fullscreen, borderless, and close buttons.
- Modifications to all language locales JS for accomodating new translations
- (enh #634): Enhance ability for PDF and HTML preview.
- Enhanced PDF support as PDF embedding is now possible for
initialPreview
. In addition a new template for PDF is available withinpreviewTemplates
. - HTML Preview is enhanced with a better template. The plugin also now includes support for
DOMPurify
plugin (and available in plugins folder). This processes and cleans the HTML from XSS before previewing. This behavior can be controlled viapurifyHtml
property that defaults totrue
.
- Enhanced PDF support as PDF embedding is now possible for
- (enh #633): New property
maxFilePreviewSize
to control preview of large size files. - (enh #632): Find correct filename in IE9.
- (enh #618): Update German Translations.
- (enh #615): Correct Finnish Localizations.
- (enh #605): Fixed previewCache tags reset.
- (enh #604): Fixed unset method in deleting previewCache index.
- (enh #600): Synchronize latest package on NuGet.
- (bug #595): Correct initialization of
allowedPreviewTypes
.
Version 4.3.1
Date: 28-Feb-2016
- (bug #577): Better label spacing for default browse icon.
- (bug #576): Correct previewCache initialization.
- (enh #575): Implement public method chaining and update docs for methods.
- (enh #574): Change naming convention for private / internal methods. Prepend internal plugin methods with underscore
_
. - (enh #573): Update package.json to include
peerDependencies
. - (enh #572): Add Finnish Translations.
- (enh #567): New properties and improved messages.
- (enh #565): Enhance progress bar display when upload is aborted or cancelled.
- (enh #560): Update French Translations.
- (enh #559): Allow custom error display styles (e.g. via bootstrap dialog) through these changes:
- added
msg
param infileerror
,fileuploaderror
, andfilefoldererror
events.
- added
- (enh #557): Enhance default file type parsing to intelligently not render unpreviewable content.
- (enh #555): Set default value for
removeFromPreviewOnError
tofalse
. - (enh #554): Update documentation and demos to include
webkitdirectory
for upload. - (enh #514): Set default value for
removeFromPreviewOnError
tofalse
.
Version 4.3.0
Date: 25-Jan-2016
- (enh #550): Correct Drag and drop issue with v4.2.9.
Version 4.2.9
Date: 22-Jan-2016
- (enh #545): Refactor code to deep extend options correctly.
- (enh #541): Improve default slug callback to accept most characters.
- (enh #534, enh #535): Ability to remove errored file thumbnails via
removeFromPreviewOnError
. - (enh #531): Enhance/Fix typos of Arabic translation.
- (enh #530): Error alert box and preview thumbnail styling enhancements.
- (enh #523): Add new branch
sass
forbootstrap-sass-official
support. - (enh #521): Update Dutch Translations.
- (enh #489): Update documentation for
change
andfileselect
events.
Version 4.2.8
Date: 18-Nov-2015
- (enh #494): Add Indonesian translations.
- (enh #490): Fix
zh-TW
translationbrowseLabel
wording. - (enh #488): Publish to npm.
- (bug #483): Clear and reset native input after uploading each single file thumbnail.
- (enh #481): Universal Module Definition for use with CommonJS, AMD or browser globals.
- (enh #474): Upload via button within each preview thumbnail skips last file for async uploads.
- (enh #477): Fix IE10 specific styling bug for file input block button.
- (enh #465): Add Català translations.
- (enh #462): Responsive buttons and new property
buttonLabelClass
. - (enh #460): Update CSS selectors prefix to start with
file
. - (enh #454): Update Turkish Translations.
- (enh #449): Add Arabic Translations.
- Implement package.json.
- Update bootstrap bower version to support only 3.x variants.
Version 4.2.7
Date: 13-Sep-2015
- (bug #442); Enhance the filenames parsing in the filestack and slug conversion.
- (enh #437): New property
defaultPreviewContent
to control a default preview. - (enh #436): New property
showClose
and new layout templateclose
to control close icon display. - (enh #434): Added Japanese translations.
- (enh #433): Added new events for image handling.
fileimageloaded
(fires after each image is loaded in preview) - this is an existing eventfileimagesloaded
(fires after all images are loaded in preview)fileimageresized
(fires after each image in preview is resized)fileimagesresized
(fires after all images in preview are resized)fileimageresizeerror
(fires when any image resize error is faced)
- (enh #432): Send slugged file names with the file blob when uploading via ajax.
- (enh #431): Add Danish locale translations.
- (bug #429): Fix for MS Edge bug that does not support drag and drop.
- (enh #428): Enhancements to asynchronous uploads when
showPreview
isfalse
. - (enh #427): Add image resizing capability before upload.
- (bug #420): Revamp file status progress and positioning updates for asynchronous upload.
Version 4.2.6
Date: 26-Aug-2015
- (enh #426): Enhancements to progress bar and display thumbnail specific progress.
- (enh #413): Various updates to translations.
- (enh #412): Enhancements to file upload cancellation.
- (enh #410): Better validation for IE 10 and below.
- (enh #405): Create traditional Chinese translations.
- (enh #401): Various enhancements to preview file thumbnails and error validations.
- (bug #398): Validate
data.errorkeys
more correctly. - (enh #393): Minor enhancements to abort events before upload.
- (enh #392): Enhancements to allow using plugin functions directly.
- (enh #391): Thumbnail styling enhancements for flash, html, and object types.
- (enh #390): Thumbnail error display enhancements.
- (enh #389): New templates and styling enhancements to caption and main buttons.
- (enh #387): Reset
initialCaption
better when preview is cleared. - (enh #385): Updated Russian & Ukranian translations.
- (enh #382): Better implementation for parsing text in
parseError
method. - Update translations to include
fileActionSettings
. - (enh #380, #381): Consistent styling for thumbnails.
- (enh #379): Combine more translatable settings and update locale js files.
- (enh #378): Ability to configure different icon thumbnails for preview files.
- (enh #377): Various enhancements to text preview.
- (enh #373): Default delete ajax request type to POST (instead of DELETE).
Version 4.2.5
Version 4.2.4
Date: 22-Jul-2015
- (enh #358): Implement event namespaces and enhance event handling process.
- (enh #357): Enhanced and better
refresh
method. - (enh #356): Implement
destroy
method. - (enh #351): Updates to Ukranian & Russian translations.
- (enh #342): Add ability to modify extra data before ajax upload in
beforeSend
events. - (enh #340): Receive
previewId
andindex
in extra data for individual thumbnail uploads (ajax).