2017 © Pedro Peláez
 

library bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

image

stratoss/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  • Tuesday, January 12, 2016
  • by stratoss
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 1785 Forks
  • 0 Open issues
  • 41 Versions
  • 0 % Grown

The README.md

bootstrap-fileinput

Bower version Latest Stable Version License Packagist Downloads Monthly Downloads, (*1)

An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various files, offers multiple selection, and more. The plugin allows you a simple way to setup an advanced file picker/upload control built to work specially with Bootstrap CSS3 styles. It enhances the file input functionality further, by offering support to preview a wide variety of files i.e. images, text, html, video, audio, flash, and objects. In addition, it includes AJAX based uploads, dragging & dropping files, viewing upload progress, and selectively previewing, adding, or deleting files., (*2)

File Input Screenshot, (*3)

NOTE: The latest version of the plugin is v4.2.9 (dev-master). Refer the CHANGE LOG for details., (*4)

Documentation and Demo

View the plugin documentation and plugin demos at Krajee JQuery plugins., (*5)

Pre-requisites

  1. Bootstrap 3.x
  2. Latest JQuery
  3. Most modern browsers supporting HTML5 (inputs and FileReader API) including CSS3 & JQuery. For Internet Explorer, one must use IE versions 10 and above. IE9 and below will work as a normal file input, and will not support multiple file selection or the HTML 5 FileReader API.
  4. With release 4.0, AJAX uploads are supported. AJAX uploads require that the browser support HTML5 FormData and XHR2 (XMLHttpRequest 2). Most modern browsers support FormData and XHR2. The plugin will automatically degrade to normal form based submission for browsers not supporting AJAX uploads.

Installation

Using Bower

You can use the bower package manager to install. Run:, (*6)

bower install bootstrap-fileinput

Using Composer

You can use the composer package manager to install. Either run:, (*7)

$ php composer.phar require kartik-v/bootstrap-fileinput "@dev"

or add:, (*8)

"kartik-v/bootstrap-fileinput": "@dev"

to your composer.json file, (*9)

Manual Install

You can also manually install the plugin easily to your project. Just download the source ZIP or TAR ball and extract the plugin assets (css and js folders) into your project., (*10)

Usage

Step 1: Load the following assets in your header., (*11)

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="path/to/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- canvas-to-blob.min.js is only needed if you wish to resize images before upload.
     This must be loaded before fileinput.min.js -->
<script src="path/to/js/plugins/canvas-to-blob.min.js" type="text/javascript"></script>
<script src="path/to/js/fileinput.min.js"></script>
<!-- bootstrap.js below is only needed if you wish to the feature of viewing details
     of text file preview via modal dialog -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" type="text/javascript"></script>
<!-- optionally if you need translation for your language then include 
    locale file as mentioned below -->
<script src="path/to/js/fileinput_locale_<lang>.js"></script>

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 locale file fileinput_locale_<lang>.js can be optionally included for translating for your language if needed., (*12)

NOTE: The canvas-to-blob.min.js file is the source for the JavaScript-Canvas-to-Blob plugin by blueimp. It is required to be loaded before fileinput.js if you wish to use the image resize feature of the bootstrap-fileinput plugin. For ease of access, the plugin source for JavaScript-Canvas-to-Blob is included in the js/plugins folder of this project repository., (*13)

Step 2: Initialize the plugin on your page. For example,, (*14)

// initialize with defaults
$("#input-id").fileinput();

// with plugin options
$("#input-id").fileinput({'showUpload':false, 'previewFileType':'any'});

The #input-id is the identifier for the input (e.g. type = file) on your page, which is hidden automatically by the plugin., (*15)

Alternatively, you can directly call the plugin options by setting data attributes to your input field., (*16)

<input id="input-id" type="file" class="file" data-preview-file-type="text" >

License

bootstrap-fileinput is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*17)

The Versions

12/01 2016

dev-master

9999999-dev https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

by Stanimir Stoyanov

file jquery bootstrap ajax upload delete image input multiple progress preview

12/01 2016

v999.1.2

999.1.2.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

by Stanimir Stoyanov

file jquery bootstrap ajax upload delete image input multiple progress preview

12/01 2016

v999.1.1

999.1.1.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

by Stanimir Stoyanov

file jquery bootstrap ajax upload delete image input multiple progress preview

12/01 2016

v999.1

999.1.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

by Stanimir Stoyanov

file jquery bootstrap ajax upload delete image input multiple progress preview

18/11 2015

v4.2.8

4.2.8.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

13/09 2015

v4.2.7

4.2.7.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

26/08 2015

v4.2.6

4.2.6.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

26/07 2015

v4.2.5

4.2.5.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

22/07 2015

v4.2.4

4.2.4.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

21/06 2015

v4.2.3

4.2.3.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

18/06 2015

v4.2.2

4.2.2.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

14/06 2015

v4.2.1

4.2.1.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD-3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

10/05 2015

v4.2.0

4.2.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

02/05 2015

v4.1.9

4.1.9.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

31/03 2015

v4.1.8

4.1.8.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

13/02 2015

v4.1.7

4.1.7.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

22/01 2015

v4.1.6

4.1.6.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

12/01 2015

v4.1.5

4.1.5.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

27/12 2014

v4.1.4

4.1.4.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

20/12 2014

v4.1.3

4.1.3.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

20/12 2014

v4.1.2

4.1.2.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

18/12 2014

v4.1.1

4.1.1.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

16/12 2014

v4.1.0

4.1.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap ajax upload delete image input multiple progress preview

16/12 2014

v4.0.0

4.0.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

08/12 2014

v3.0.0

3.0.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

23/11 2014

v2.9.0

2.9.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

13/11 2014

v2.8.0

2.8.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

11/11 2014

v2.7.0

2.7.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

22/10 2014

v2.6.0

2.6.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

13/10 2014

v2.5.0

2.5.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

05/10 2014

v2.4.0

2.4.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, and more.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input multiple preview

18/09 2014

v2.3.0

2.3.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

20/08 2014

v2.2.0

2.2.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

14/08 2014

v2.1.0

2.1.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

31/07 2014

v2.0.0

2.0.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

28/07 2014

v1.9.0

1.9.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

19/07 2014

v1.8.0

1.8.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

08/07 2014

v1.7.0

1.7.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

15/06 2014

v1.6.0

1.6.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

23/05 2014

v1.5.0

1.5.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview

07/05 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, and more features.

  Sources   Download

BSD 3-Clause

file jquery bootstrap upload image input preview