Skip to content

Commit

Permalink
Updates to release v5.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 23, 2021
1 parent 93490f5 commit 6428493
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 101 deletions.
2 changes: 1 addition & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Change Log: `bootstrap-fileinput`

## version 5.2.6

**Date**: _under development_
**Date**: 23-Sep-2021

- (bug #1758): Correct bootstrap module parser.
- (enh #1756): Replace `getLoadingUrl` to a new `$h.getZoomPlaceholder` method.
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Step 1: Load the following assets on your page in the order mentioned.

```html
<!-- bootstrap 5.x or 4.x is supported. You can also use the bootstrap css 3.3.x versions -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" crossorigin="anonymous">

<!-- default icons used in the plugin are from Bootstrap 5.x icon library (which can be enabled by loading CSS below) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.min.css" crossorigin="anonymous">
Expand All @@ -93,40 +93,40 @@ Step 1: Load the following assets on your page in the order mentioned.
<!-- link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" crossorigin="anonymous" -->

<!-- the fileinput plugin styling CSS file -->
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />

<!-- if using RTL (Right-To-Left) orientation, load the RTL CSS file after fileinput.css by uncommenting below -->
<!-- link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->
<!-- link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->

<!-- the jQuery Library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>

<!-- piexif.min.js is needed for auto orienting image files OR when restoring exif data in resized images and when you
wish to resize images before upload. This must be loaded before fileinput.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/js/plugins/piexif.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/js/plugins/piexif.min.js" type="text/javascript"></script>

<!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview.
This must be loaded before fileinput.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/js/plugins/sortable.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/js/plugins/sortable.min.js" type="text/javascript"></script>

<!-- bootstrap.bundle.min.js below is needed if you wish to zoom and preview file content in a detail modal
dialog. bootstrap 5.x or 4.x is supported. You can also use the bootstrap js 3.3.x versions. -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>

<!-- the main fileinput plugin script JS file -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/js/fileinput.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/js/fileinput.min.js"></script>

<!-- following theme script is needed to use the Font Awesome 5.x theme (`fas`). Uncomment if needed. -->
<!-- script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/themes/fas/theme.min.js"></script -->
<!-- script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/themes/fas/theme.min.js"></script -->

<!-- optionally if you need translation for your language then include the locale file as mentioned below (replace LANG.js with your language locale) -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.5/js/locales/LANG.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-fileinput@5.2.6/js/locales/LANG.js"></script>
```
With v5.2.1, the plugin is able to automatically detect the bootstrap library version and deliver the relevant bootstrap specific functionality (if you have loaded the bootstrap.min.js before fileinput.min.js). In case of any issues - you can explicitly set the bootstrap version by setting the following variable before the plugin initialization script.

```js
// set this before initializing the fileinput plugin
$.fn.fileinputBsVersion = '3.3.7'; // for example if using bootstrap css 3.3.7 version
$.fn.fileinputBsVersion = '3.4.1'; // for example if using bootstrap css 3.4.1 version
```

If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `fileinput.min.css` and `fileinput.min.js`. The theme file `themes/fa/theme.js` can be optionally included for the font awesome icons styling. The locale file `<lang>.js` can be optionally included for translating for your language if needed.
Expand Down
76 changes: 38 additions & 38 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"name": "bootstrap-fileinput",
"version": "5.2.6",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with file preview, multiple selection, ajax uploads, and more features.",
"main": [
"./css/fileinput.min.css",
"./js/fileinput.min.js"
],
"keywords": [
"bootstrap",
"file",
"input",
"preview",
"image",
"upload",
"ajax",
"multiple",
"delete",
"progress",
"gallery"
],
"dependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.4.1"
},
"license": "BSD-3-Clause",
"ignore": [
"**/.*",
"node_modules",
"composer.json",
"examples",
"bower_components",
"test",
"tests"
]
"name": "bootstrap-fileinput",
"version": "5.2.6",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with file preview, multiple selection, ajax uploads, and more features.",
"main": [
"./css/fileinput.min.css",
"./js/fileinput.min.js"
],
"keywords": [
"bootstrap",
"file",
"input",
"preview",
"image",
"upload",
"ajax",
"multiple",
"delete",
"progress",
"gallery"
],
"dependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.4.1"
},
"license": "BSD-3-Clause",
"ignore": [
"**/.*",
"node_modules",
"composer.json",
"examples",
"bower_components",
"test",
"tests"
]
}
12 changes: 10 additions & 2 deletions examples/index-bs3.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<!--
* bootstrap-fileinput v5.2.6
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD-3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
-->
<!DOCTYPE html>
<!-- release v5.2.6, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
<meta charset="UTF-8"/>
Expand Down
12 changes: 10 additions & 2 deletions examples/index-bs4.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<!--
* bootstrap-fileinput v5.2.6
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD-3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
-->
<!DOCTYPE html>
<!-- release v5.2.6, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
<meta charset="UTF-8"/>
Expand Down
12 changes: 10 additions & 2 deletions examples/index-bs5.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<!--
* bootstrap-fileinput v5.2.6
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD-3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
-->
<!DOCTYPE html>
<!-- release v5.2.6, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
<meta charset="UTF-8"/>
Expand Down
92 changes: 46 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"name": "bootstrap-fileinput",
"version": "5.2.6",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with file preview, multiple selection, ajax uploads, and more features.",
"repository": {
"type": "git",
"url": "https://github.com/kartik-v/bootstrap-fileinput.git"
},
"bugs": {
"url": "https://github.com/kartik-v/bootstrap-fileinput/issues"
},
"keywords": [
"file",
"input",
"preview",
"image",
"upload",
"ajax",
"multiple",
"delete",
"progress",
"gallery"
],
"dependencies": {
"bootstrap": ">= 3.4.1",
"jquery": ">= 1.9.0",
"opencollective-postinstall": "^2.0.2"
},
"main": "./js/fileinput.js",
"style": "./css/fileinput.css",
"sass": "scss/fileinput.scss",
"peerDependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.0.0"
},
"license": "BSD-3-Clause",
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/bootstrap-fileinput"
},
"scripts": {
"postinstall": "opencollective-postinstall || true"
}
"name": "bootstrap-fileinput",
"version": "5.2.6",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with file preview, multiple selection, ajax uploads, and more features.",
"repository": {
"type": "git",
"url": "https://github.com/kartik-v/bootstrap-fileinput.git"
},
"bugs": {
"url": "https://github.com/kartik-v/bootstrap-fileinput/issues"
},
"keywords": [
"file",
"input",
"preview",
"image",
"upload",
"ajax",
"multiple",
"delete",
"progress",
"gallery"
],
"dependencies": {
"bootstrap": ">= 3.4.1",
"jquery": ">= 1.9.0",
"opencollective-postinstall": "^2.0.2"
},
"main": "./js/fileinput.js",
"style": "./css/fileinput.css",
"sass": "scss/fileinput.scss",
"peerDependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.0.0"
},
"license": "BSD-3-Clause",
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/bootstrap-fileinput"
},
"scripts": {
"postinstall": "opencollective-postinstall || true"
}
}

0 comments on commit 6428493

Please sign in to comment.