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
.