Examples


Default Styling Single File

Basic setup using the class twr-file-button on the label for the default styling included in the plugin.


With Clear Button

Add a button with the twr-file-clear class. This will allow deselecting all of the selected files.


Default Styling Single File With a Font Icon

Adds a font icon before the text when any files are selected. The icon when no files are selected has to be in the HTML of the label when the plugin is initialized.


Default Styling Multiple Files

Add the multiple attribute to the file input to allow selecting multiple files.


Using Bootstrap Styles

Replace the twr-file-button class with something like Bootstraps button classes