Releases: kartik-v/bootstrap-fileinput
Releases · kartik-v/bootstrap-fileinput
Version 4.1.3
Date: 20-Dec-2014
- (enh #87): More correct progress indicator percentage for asynchronous upload.
filepreupload
fileuploaded
fileuploaderror
filebatchuploaderror
filebatchuploadsuccess
filebatchuploadcomplete
- (enh #86): Disable thumbnail action buttons when upload is in progress.
- (enh #85): Combine output data as a single object, that is sent for various file upload events.
Version 4.1.2
Date: 19-Dec-2014
Version 4.1.1
Version 4.1.0
Date: 17-Dec-2014
- (enh #75): Better validation of browser support for drag and drop.
- (enh #74): Enhancements to file validation errors for both FORM and AJAX uploads.
- For normal Form based uploads automatically disable the Upload button
- Display a separate error styled thumbnail for the file that faced the validation error.
- Reset errors correctly to overwrite files with a new change or drag/drop
Version 4.0.0
Date: 14-Dec-2014
- (bug #72): Fix bootstrap ## version constraint.
- Renamed
initialDelimiter
toinitialPreviewDelimiter
- (enh #70): Version 4.0 enhancements.
Version 4.0 Features
- Add functionality for AJAX based UPLOAD using HTML5 FormData (most modern browsers support it). Will degrade to normal Form Based File submission if this is not supported.
- To use AJAX Upload, the
uploadUrl
property is MANDATORY and must be set. - Enhance plugin to now allow files to be added, appended, removed (based on FEEDBACK from many). Thus one can append files to preview.
- New DRAG & DROP zone available in preview to drag and drop files and append.
- Delete or upload files one by one OR in batch.
- If
showPreview
is set to false, or uploadUrl is not supported plugin will degrade to normal form based upload. - Configurable indicators for file awaiting upload, file successfully uploaded, files errored in upload.
- Ability to add extra form data with ajax based uploads.
- Upload progress bar and individual thumbnail upload indicators.
- Ability to cancel and abort ongoing AJAX uploads.
- Templates have been revamped and enhanced for each file type.
- Ensure plugin is still lean in size and optimized for performance inspite of the above features by optimally utilizing HTML5 & jquery features only.
New properties added
showCancel
: shows a cancel button for aborting ajax uploads (defaults totrue
).cancelLabel
: label for the cancel button.cancelTitle
: title for the cancel button on hover.cancelIcon
: icon markup for the cancel buttoncancelClass
: CSS class for the cancel button.removeTitle
: title for the remove button on hover.uploadTitle
: title for the upload button on hover.uploadUrl
: the url that will be used to process AJAX based uploads (using FormData XHR2).uploadExtraData
: extra data that will be passed as data to the url/AJAX server call via POSTuploadAsync
: whether the batch upload of multiple files will be asynchronous/in parallel. Defaults totrue
.initialPreviewShowDelete
: shows a delete button for each initial preview content's thumbnail (defaults totrue
).initialPreviewConfig
: configuration for setting up eachinitialPreviewContent
item (associative array/object)caption
: The caption or filename to display for each initial preview item content.width
: The CSS width of the image/content displayed.url
: The URL for deleting the image/content via AJAX (shown only forinitialPreviewContent
).key
: The key that will be passed to the URL via POST (shown only forinitialPreviewContent
).
dropZoneEnabled
: Enable a drag and drop zone for dragging files and is available only for ajax based uploads (defaults totrue
).dropZoneTitle
: Title to be displayed in the drag & drop zone.dropZoneTitleClass
: CSS class for the drag & drop zone title.fileActionSettings
: configuration for setting up actions for newly selected file thumbnails in the preview (associative array/object)removeIcon
: icon for remove button to be displayed in each file thumbnail.removeClass
: CSS class for the remove button in each file thumbnail.removeTitle
: title for remove button in each file thumbnail.uploadIcon
: icon for upload button to be displayed in each file thumbnail.uploadClass
: CSS class for the remove button in each file thumbnail.uploadTitle
: title for remove button in each file thumbnail.indicatorNew
: an indicator (HTML markup) for new pending upload displayed in each file thumbnail.indicatorSuccess
: an indicator (HTML markup) for successful upload displayed in each file thumbnail.indicatorError
: an indicator (HTML markup) for error in upload displayed in each file thumbnail.indicatorLoading
: an indicator (HTML markup) for ongoing upload displayed in each file thumbnail.indicatorNewTitle
: title to display on hover of indicator for new pending upload in each file thumbnail.indicatorSuccessTitle
: title to display on hover of indicator for successful in each file thumbnail.indicatorErrorTitle
: title to display on hover of indicator for error in upload in each file thumbnail.indicatorLoadingTitle
: title to display on hover of indicator for ongoing upload in each file thumbnail.
Version 3.0.0
Date: 08-Dec-2014
- (bug #68): Fix refresh method of the fileinput to trigger change correctly.
- (enh #67): Enhance support for IE browsers
- Add specific validations for parsing IE versions rightly
- Enhance plugin to extend styling support to IE 9 (with the limitation that IE 9 does not support HTML 5 features like multiple file upload)
- Fix clearing of file input rightly for IE 9 & IE 10
- Degrade plugin automatically to a native file input for older IE versions
- Prevent change method firing twice when file is cleared after error is encountered in IE 11.
- (enh #65): Correct validation of
refreshPreview
usingupdateFileDetails
. - (enh #64): Add ability to override the slug method with a
slugCallback
property. - (bug #61): Refresh preview to show errors correctly after each file is validated.
- (enh #60): Enhance upload button for disable/enable when used with
<a>
tag.
Version 2.9.0
Version 2.8.0
Date: 13-Nov-2014
- (enh #52): Raise new
fileimageloaded
event. - (enh #51): Autosize preview images when they exceed the size of the preview container.
- (enh #50): Dynamically auto size file captions for long file names exceeding container width. New property
autoFitCaption
is added which defaults totrue
. When this istrue
the plugin will auto fit caption text within the container dynamically
and responsively based on window size.
Version 2.7.0
Version 2.6.0
Date: 15-Oct-2014
- (bug #44): Browser IE10 hangs on file clear.
- (bug #43): Validate special characters in filename before generating caption.
- (enh #42): Enhance plugin to configure the
elErrorContainer
for displaying validation errors. - Templatize errorContainer for display within the preview window.
- (bug #40): More correct fix for IE (ver < 11) inability to clear fileinput values.