‹ Home
XFI takes advantage of the features available in HTML5 to provide a better user experience for file inputs using the multiple attribute.
If you're looking for features like drag and drop, asynchronous uploads and progress bars then you might want to try something else.
XFI is a simple a jQuery plugin that can be easily integrated into your existing code.
Setting up XFI is really simple:
multiple attribute and add a CSS class of 'xfi' to any file inputs on which you want to enable XFI$.XFI() after the DOM has loadedXFI only has two configuration options, both of which are optional:
true.false.For example:
$.XFI({
submitButtonFeedback: false,
debug: true
});
The HTML generated by XFI is easily styleable via CSS.
XFI proxy input markup:
<button class="xfi-input">Choose file(s)...</button>
<ul class="xfi-file-information-container"> <li class="xfi-file-information">IMG_0001.jpg <i>(560 Kb)</i></li> </ul>
And finally, a CSS class of 'busy' will be added to the form's submit button on submission if the submitButtonFeedback option is enabled.
Internet Explorer 6-9 do not currently support the multiple attribute on file inputs, therefore XFI is not supported for Internet Explorer. Any XFI file inputs will fallback to being normal file input fields.
Current version - 1.1
Please note: jQuery is required dependency.
XFI is licensed under a MIT License.
Feel free to tweet me any feedback on @alistairholt.
Got a bug fix or something to add? Fork and send me a pull request on GitHub.
If you just want to report an issue you've experience, create one on GitHub.