Skip to content

Commit

Permalink
Updates to release v4.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Dec 24, 2016
1 parent ad0ddce commit 718028c
Show file tree
Hide file tree
Showing 43 changed files with 339 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `bootstrap-fileinput`
=================================

## version 4.3.7

**Date:** 24-Dec-2016

- (enh #816): New property `msgFileTypes` to control descriptions/localizations of file types displayed.

## version 4.3.6

**Date:** 17-Dec-2016
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various fi

![File Input Screenshot](https://lh3.googleusercontent.com/-3FiEmc_okc4/VBw_d2LBAJI/AAAAAAAAAL8/KbVj5X9Dus0/w596-h454-no/FileInput.jpg)

> NOTE: The latest version of the plugin is v4.3.6. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
> NOTE: The latest version of the plugin is v4.3.7 (under development). Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
## Documentation and Demo

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-fileinput",
"version": "4.3.6",
"version": "4.3.7",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-fileinput v4.3.6
* bootstrap-fileinput v4.3.7
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- release v4.3.6, copyright 2014 - 2017 Kartik Visweswaran -->
<!-- release v4.3.7, copyright 2014 - 2017 Kartik Visweswaran -->
<html lang="en">
<head>
<meta charset="UTF-8"/>
Expand Down
22 changes: 19 additions & 3 deletions js/fileinput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-fileinput v4.3.6
* bootstrap-fileinput v4.3.7
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
Expand Down Expand Up @@ -2220,9 +2220,15 @@
var node = ctr + i, previewId = previewInitId + "-" + node, isText, isImage, file = files[i], fSizeKB,
caption = file.name ? self.slug(file.name) : '', fileSize = (file.size || 0) / 1000, checkFile,
fileExtExpr = '', previewData = objUrl.createObjectURL(file), fileCount = 0, j, msg, typ, chk,
fileTypes = self.allowedFileTypes, strTypes = isEmpty(fileTypes) ? '' : fileTypes.join(', '),
fileTypes = self.allowedFileTypes, typ1, typ2, strTypes = '', typLen = fileTypes ? fileTypes.length : 0,
fileExt = self.allowedFileExtensions, strExt = isEmpty(fileExt) ? '' : fileExt.join(', ');

if (typLen > 0) {
for (j = 0; j < typLen; j++) {
typ1 = fileTypes[j];
typ2 = self.msgFileTypes[typ1] || typ1;
strTypes += j === 0 ? typ2 : ', ' + typ2;
}
}
if (caption === false) {
readFile(i + 1);
return;
Expand Down Expand Up @@ -3314,6 +3320,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Invalid type for file "{name}". Only "{types}" files are supported.',
msgInvalidFileExtension: 'Invalid extension for file "{name}". Only "{extensions}" files are supported.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'The file upload was aborted',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Validation Error',
Expand Down
8 changes: 4 additions & 4 deletions js/fileinput.min.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions js/locales/LANG.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Invalid type for file "{name}". Only "{types}" files are supported.',
msgInvalidFileExtension: 'Invalid extension for file "{name}". Only "{extensions}" files are supported.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'The file upload was aborted',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Validation Error',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'نوعية غير صالحة للملف "{name}". فقط هذه النوعيات مدعومة "{types}".',
msgInvalidFileExtension: 'امتداد غير صالح للملف "{name}". فقط هذه الملفات مدعومة "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'تم إلغاء رفع الملف',
msgUploadThreshold: 'Processing...',
msgValidationError: 'خطأ التحقق من صحة',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Невалиден тип на файла "{name}". Разрешени са само "{types}".',
msgInvalidFileExtension: 'Невалидно разрешение на "{name}". Разрешени са само "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Качите файла, бе прекратена',
msgUploadThreshold: 'Processing...',
msgValidationError: 'утвърждаване грешка',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Tipus de fitxer no vàlid per a "{name}". Només arxius "{types}" són permesos.',
msgInvalidFileExtension: 'Extensió de fitxer no vàlid per a "{name}". Només arxius "{extensions}" són permesos.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'La càrrega d\'arxius s\'ha cancel·lat',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Error de validació',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Datoteka "{name}" je pogrešnog formata. Dozvoljeni formati su "{types}".',
msgInvalidFileExtension: 'Ekstenzija datoteke "{name}" nije dozvoljena. Dozvoljene ekstenzije su "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Prijenos datoteka je prekinut',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Provjera pogrešaka',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/cz.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Neplatný typ souboru "{name}". Pouze "{types}" souborů jsou podporovány.',
msgInvalidFileExtension: 'Neplatná extenze souboru "{name}". Pouze "{extensions}" souborů jsou podporovány.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Soubor nahrávání byl přerušen',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Chyba ověření',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Ukendt type for filen "{name}". Kun "{types}" kan bruges.',
msgInvalidFileExtension: 'Ukendt filtype for filen "{name}". Kun "{extensions}" filer kan bruges.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Filupload annulleret',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Validering Fejl',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Ungültiger Typ für Datei "{name}". Nur Dateien der Typen "{types}" werden unterstützt.',
msgInvalidFileExtension: 'Ungültige Erweiterung für Datei "{name}". Nur Dateien mit der Endung "{extensions}" werden unterstützt.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Der Datei-Upload wurde abgebrochen',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Validierungs fehler',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Μη έγκυροι χαρακτήρες στο όνομα του αρχείου "{name}".',
msgInvalidFileType: 'Μη έγκυρος ο τύπος του αρχείου "{name}". Οι τύποι αρχείων που υποστηρίζονται είναι : "{types}".',
msgInvalidFileExtension: 'Μη έγκυρη η επέκταση του αρχείου "{name}". Οι επεκτάσεις που υποστηρίζονται είναι : "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Η μεταφόρτωση του αρχείου ματαιώθηκε',
msgUploadThreshold: 'Μεταφόρτωση ...',
msgValidationError: 'Σφάλμα Επικύρωσης',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Caracteres no válidos o no soportados en el nombre de archivo "{name}".',
msgInvalidFileType: 'Tipo de archivo no válido para "{name}". Sólo se permiten archivos de tipo "{types}".',
msgInvalidFileExtension: 'Extensión de archivo no válido para "{name}". Sólo se permiten archivos "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'La carga de archivos se ha cancelado',
msgUploadThreshold: 'Procesando...',
msgValidationError: 'Error de validación',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'نوع فایل "{name}" معتبر نیست. فقط "{types}" پشیبانی می‌شود.',
msgInvalidFileExtension: 'پسوند فایل "{name}" معتبر نیست. فقط "{extensions}" پشتیبانی می‌شود.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'The file upload was aborted',
msgUploadThreshold: 'Processing...',
msgValidationError: 'خطای اعتبار سنجی',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Type de document invalide pour "{name}". Seulement les documents de type "{types}" sont autorisés.',
msgInvalidFileExtension: 'Extension invalide pour le fichier "{name}". Seules les extensions "{extensions}" sont autorisées.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Le téléchargement du fichier a été interrompu',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Erreur de validation',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Hibás vagy nem támogatott karakterek a fájl nevében "{name}".',
msgInvalidFileType: 'Nem megengedett fájl "{name}". Csak a "{types}" fájl típusok támogatottak.',
msgInvalidFileExtension: 'Nem megengedett kiterjesztés / fájltípus "{name}". Csak a "{extensions}" kiterjesztés(ek) / fájltípus(ok) támogatottak.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'A fájl feltöltés megszakítva',
msgUploadThreshold: 'Folyamatban...',
msgValidationError: 'Érvényesítés hiba',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Jenis berkas "{name}" tidak sah. Hanya berkas "{types}" yang didukung.',
msgInvalidFileExtension: 'Ekstensi berkas "{name}" tidak sah. Hanya ekstensi "{extensions}" yang didukung.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Pengunggahan berkas dibatalkan',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Kesalahan validasi',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Tipo non valido per il file "{name}". Sono ammessi solo file di tipo "{types}".',
msgInvalidFileExtension: 'Estensione non valida per il file "{name}". Sono ammessi solo file con estensione "{extensions}".',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Il caricamento del file è stata interrotta',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Errore di convalida',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: '"{name}"は無効なファイル形式です。"{types}"形式のファイルのみサポートしています',
msgInvalidFileExtension: '"{name}"は無効なファイル拡張子です。拡張子が"{extensions}"のファイルのみサポートしています',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'ファイルのアップロードが中止されました',
msgUploadThreshold: 'Processing...',
msgValidationError: '検証エラー',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Geen geldig bestand "{name}". Alleen "{types}" zijn toegestaan.',
msgInvalidFileExtension: 'Geen geldige extensie "{name}". Alleen "{extensions}" zijn toegestaan.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Het uploaden van bestanden is afgebroken',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Bevestiging fout',
Expand Down
10 changes: 10 additions & 0 deletions js/locales/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
msgInvalidFileType: 'Nieznny typ pliku "{name}". Tylko następujące rodzaje plików "{types}", są obsługiwane.',
msgInvalidFileExtension: 'Złe rozszerzenie dla pliku "{name}". Tylko następujące rozszerzenia plików "{extensions}", są obsługiwane.',
msgFileTypes: {
'image': 'image',
'html': 'HTML',
'text': 'text',
'video': 'video',
'audio': 'audio',
'flash': 'flash',
'pdf': 'PDF',
'object': 'object'
},
msgUploadAborted: 'Plik przesyłanie zostało przerwane',
msgUploadThreshold: 'Processing...',
msgValidationError: 'Błąd walidacji',
Expand Down
Loading

0 comments on commit 718028c

Please sign in to comment.