Releases: kartik-v/bootstrap-fileinput
Releases · kartik-v/bootstrap-fileinput
Version 4.2.3
Date: 21-Jun-2015
- (enh #336): Fixes to reset preview via
initUploadSuccess
.
Version 4.2.2
Date: 18-Jun-2015
- (enh #332): Bump nuget and bower package versions.
Version 4.2.1
Date: 15-Jun-2015
- (enh #330): Minor enhancements in validating preview and progress bar display.
- (enh #329): Message translation updates.
- (bug #328): Implement image dimension validations.
- New properties added to the plugin:
minImageWidth
minImageHeight
maxImageWidth
maxImageHeight
msgImageWidthSmall
msgImageHeightSmall
msgImageWidthLarge
msgImageHeightLarge
- New properties added to the plugin:
- (bug #327): More correct clearing of preview.
- (bug #315): Fix parsing of preview settings for default (other) preview.
- (bug #310): Set missing caption icon on error.
- (enh #309): Fixes for older browsers.
- (enh #308): Better check for
data.error
being empty. - (enh #307): Allow setting thumbnail frame css class and attributes via
initialPreviewConfig
. - (enh #305): Implement better cleanup of memory with
revokeObjectURL
. - (enh #303): Validate only files to be dragged and dropped.
- (enh #302): Add Greek (el) translations.
- (enh #299): Enhancements for displaying uploaded file thumbnails.
- New property
showUploadedThumbs
that will display uploaded thumbnails until the remove/clear button is explicitly pressed. - New event
filesuccessremove
. This will be triggered on removing the uploaded thumbnail using the thumbnail delete button. The event shares the following parameters:id
: the HTML id attribute of the thumbnail container
Theevent
can be set to returnfalse
to abort the thumbnail removal.
- New property
- (enh #297): Add Romanian translations.
- (enh #296): Fixed license identifiers in bower.json and composer.json.
- (bug #295): Validate
overwriteInitial
correctly for ajax uploads. - (enh #287): Add Brazilian Portugese (pt-BR) translations.
- (enh #279, #280): Fixed error for failed response types.
Version 4.2.0
Version 4.1.9
Date: 02-May-2015
- (bug #273): Reset caption correctly after all initial preview is deleted.
- (enh #271): Add Dutch translations.
- (enh #270): Add Portugese translations.
- (enh #269, #272): Add Turkish translations.
- (enh #264): Validate input type of file before initializing plugin.
- (enh #263): Enhance parsing of file preview thumbnails and actions.
- (enh #259): Add Polish translations.
- (enh #258): Enhance messages to include file plural and single.
- (bug #257): Fix upload single to replace thumbs correctly.
- (bug #253): Fix initial preview delete cache initialization.
- (enh #252): Enhance async batch completion.
- (enh #251): Add Italian localizations.
- (enh #250): Change default slug routine to allow umlauts in filenames.
- (bug #249): Fix error message content display.
- (enh #248): keep chinese characters in file caption.
- (bug #247): Correct mime types validation.
- (enh #245): Allow initial caption to be set without initial preview.
- (enh #244): Add Serbian translations.
- (bug #243): Correct sending of
deleteExtraData
. - (enh #241): Enhancements to initial preview delete to perform validations before delete.
- (bug #238): Correct initialization of plugin variables when other than maxFileCount & maxFileSize.
- (enh #237): Better styling of file caption icon.
- (enh #232): Update docs to reflect updated bootstrap CDN domain.
Version 4.1.8
Date: 30-Mar-2015
- (enh #230): More correct initial preview delete reset.
- (enh #229): Created French translations.
- (enh #228): Created Thai translations.
- (enh #227): Created Ukranian translations and updated Russian translations.
- (enh #226): Create Spanish (Latin American) translations.
- (enh #225): Create Russian translations.
- (enh #222): Enhance to include dynamically replaceable thumbnail tags. Two new properties
previewThumbTags
andinitialPreviewThumbTags
will be available for configuration. - (enh #218): Do not clear preview for ajaxuploads until remove button clicked.
- (enh #217): Ensure
filebatchselected
event is triggered after FileReader completes reading files selected. - (enh #216): Add Hungarian Translations.
- (enh #215): Set default delete method REST compliant.
- (enh #213): Code cleanup, eliminate change event on clear and properly reset preview cache after ajax deletes.
- (enh #212): Revamp preview to use a new preview caching object.
- (enh #211): Add ability to show detailed server error stack via
showAjaxErrorDetails
. - (enh #209): Better validation for folder drag and drop and auto-skip any dropped folders. New property
msgFoldersNotAllowed
added to the plugin to allow configuring the message shown. The eventfilefoldererror
is triggered when a folder is dragged. - (enh #206): Ability to add custom validation and trigger custom error to abort upload.
- This enhancement will enable you to add your additional custom validations to enhance the fileinput to be used for innumerous scenarios. It will allow an ability to return an associative object with any of the fileinput events (except the error events and the
filebatchuploadsuccess
orfilebatchuploadcomplete
) e.g.change
,fileselect
,filepreupload
,filebatchpreupload
etc. The object can return the following keys:message
: string, the validation error message to be displayed before upload. If this is set the plugin will automatically abort the upload whenever called and display this as an error message. You can use this property for example to read a file and perform your own custom validation.data
: object, an optional associative array of additional data that you can pass for usage later.
- You can get this data by reading
abortData
in the parameters for the newfilecustomerror
event. This new event will be triggered during upload, when you have triggered an abort from any of the other events.
- This enhancement will enable you to add your additional custom validations to enhance the fileinput to be used for innumerous scenarios. It will allow an ability to return an associative object with any of the fileinput events (except the error events and the
- (enh #205): Allow to auto set initialPreview within
filebatchuploadcomplete
&filebatchuploadsuccess
.- Allows you to auto define the
initialPreview
andinitialPreviewConfig
after an ajax upload by returning these within the data object from your ajax response onfileuploaded
&filebatchuploadsuccess
.
- Allows you to auto define the
- (enh #204): New properties
fileMinCount
andmsgFilesTooLess
(useful to make file input mandatory).- The
fileMinCount
property will allow to set the minimum file count needed before triggering upload. It will work for bothajax
uploads andnormal form based submission
. - This will enable you to set the file input to be a mandatory / required input. (e.g.
fileMinCount
=1
). ThemsgFilesTooLess
will be displayed and error raised. - If
fileMinCount
is set to0
it will be treated as files are optional and no error will be triggered.
- The
- (enh #203): Enhancements and revamp of all error events.
- (enh #202): Ability to add Translations / Locales.
- Identify and group all messages that need to be translated configurable via
$.fn.fileinput.locales['<lang-code>']
- Set default english messages configuration
$.fn.fileinput.locales['en']
within the plugin core code - Individual locale files need to be created as separate js files e.g.
<lang>.js
- Identify and group all messages that need to be translated configurable via
- (bug #193): Better validation for triggering
filebatchuploadcomplete
on async batch upload completion. - (enh #192): Ability to extend and add one's own ajax settings.
- New property
ajaxDeleteSettings
to help extend and add to delete ajax settings. ajaxSettings
to help extend and add upload ajax settings
- New property
- (enh #189): Reinitialize initial preview delete events correctly on file selection.
- (enh #188): Clear fileinput more correctly for all browsers when initialPreview is set enhancement
- (enh #187): New property
previewFileIcon
to configure file icon shown in preview for unreadable file types. - (enh #184): Fix documentation for filedeleted event.
- (enh #183): Delete extra data enhancements.
- (enh #181): Fix change event triggered for IE 11 when file input is set to empty.
- (enh #179): Validate and cast
maxFileSize
andmaxFileCount
to numeric - even if they have been setup as a string. - (enh #178): Updated README for cancel button configuration.
- (enh #177): Trigger filebatchpreupload if showPreview is
false
. - (enh #176): Wrong file in README installation steps fixed.
- (enh #175): Ability to override delete extra data in
initialPreviewConfig
. - (enh #174): New
deleteUrl
property. - (enh #167, #173): New
deleteExtraData
property for ajax deletions. - (bug #171): Fix typo for files validation.
Version 4.1.7
Date: 13-Feb-2015
- Relocate sample files from examples directory to bootstrap-fileinput-samples repo.
- Set copyright year to current.
- (enh #162): New property ajaxSettings to allow configuring ajax params.
- (bug #160): Correct documentation typo for usage.
- (bug #159): Ensure filestack is passed correctly with
outData
for events. - (enh #157): Upload progress bar styling enhancements.
- Allow upload progress bar css class to be configurable
- Create and allow two different styles/css classes for progress bar
progressClass
: styling for progress bar when upload is in processprogressCompleteClass
: styling for progress bar when upload is complete
- (enh #156): Fix reset of file stack for various upload modes (single, batch async and batch sync).
- (enh #155): Allow display of long file names without spaces/word breaks.
- (enh #154): Code cleanup and restructure for JS lint changes (using JSHint Code cleanup library).
- (enh #153): Improve error handler for trapping FileReader security exceptions and new property
msgFileSecured
will display the security exception message. - (enh #152): New faster
replaceAll
method instead of regexp parsing to replace tags in templates. - (enh #151): New
filebatchselected
event triggered after every batch of files are selected. - (enh #149): Custom tags support for layoutTemplates and previewTemplates (new properties
customLayoutTags
andcustomPreviewTags
included).
Version 4.1.6
Version 4.1.5
Date: 12-Jan-2015
- (enh #121): Animate progress bars by default for upload progress.
- (bug #120): Correct multiple iterations of upload for async batch uploads.
- (enh #119): Enhance caption to include ellipsis for long file names
- (enh #116): Hide remove and upload buttons until unless file(s) are selected.
- (enh #115): Autosize file caption responsively on window resize.
- (bug #114): Prevent multiple file selection when using single file configuration.
- (bug #113): Icon layout template undefined when using user template.
- (bug #112): Fix undefined filestack for individual file upload within preview.
- (enh #108): Add nuget package.
- (enh #106): Enhance events for ajax requests and enable cancelling sync uploads
- (enh #105): Expose current jqXHR object on ajax events.
- (bug #104): Fix formdata not defined.
- (bug #100, #101): Set right params for error thrown during reading of files.
Version 4.1.4
Date: 26-Dec-2014
- (bug #97): Reset events correctly with plugin refresh method.
- (bug #95): Correct event off for drag & drop in plugin refresh method.
- Code cleanup with reusable methods for event raising and outData generation.
- (enh #93): Better styling of file upload icon indicators in thumbnails.
- (enh #92): Realign event triggering timing for batch uploads to ensure outData is available.
- (enh #91): Pass FileReader instance with outData in events.
- (enh #90): New event
filebatchpreupload
for both synchronous and asynchronous batch uploads. - (enh #89): New
otherActionButtons
to allow adding customized initial preview content actions. - (enh #88): Allow uploadExtraData to be passed as a callback.