Fancy html file input customization using jquery fileStyle Plugin

jquery fileStyle Plugin help to personalize your html input file and let make it beautiful. It also helps you to create nice clean, drag-and-drop file input fields without the need of Bootstrap framework. So that your user can easily drag and drop files on file input box and upload documents.

Integrate Fancy html file input on your website


Include the fileStyle minified CSS jquery-filestyle.min.css and JS jquery-filestyle.min.js file on page don’t forget to include latest jquery library before fileStyle JS.

<link href="jquery-filestyle.min.css" rel="stylesheet" />
<script src=""></script>
<script type="text/javascript" src="jquery-filestyle.min.js"></script>


Create Plain fancy HTML file input element by simply calling jfilestyle() plugin function on page.

<input type="file" name="test" id="fileInput">
$(function() { $('#fileInput').jfilestyle() });

You can customize your HTML file input element by tow method 1). Using data attribute 2). Jquery function.

Customizing html file input using html data attribute.

<input type="file" class="fileInput" 

Customizing html file input via jquery plugin function

$(function() {   
  'text': 'Choose file',
  'input': true,
  'disabled': false,
  'buttonBefore': false,
  'inputSize': '200px',
  'placeholder': '',
  'dragdrop': true,
  'onChange': function () {}

See live demo and download source code.


See official github repository for more information and follow for future updates. Don’t forget to read license for using above plugin in your commercial project.