Styled file inputs for bootstrap 3

Nicer looking file inputs for bootstrap 3. Ideas ripped off from here.

Basic

Basic file input in a “horizontal” form.

With existing filename
<input type="file" data-filename="existing.txt">

or

$(':file').upload({filename: 'existing.txt'});
With explicit style

Explicit style attribute on the file input gets applied to the wrapper.

<input type="file" style="width:75%;">
Programatic Initialization

Explicit initialization/destruction.

Custom button text
<input type="file" data-selectfile="Pick!" data-changefile="Change!">

or

$(':file').upload({selectfile: 'Pick!', changefile: 'Change!'});