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.