Overview
What is Multifile? It is jQuery plugin. How does it work? After select file automaticly add new file input into form and show list of selected files. It makes your form dynamic, that's why you can use it for uploading more files.
Attributes:
- limit - max count of file inputs (0 or 1 = no limit)
- limitMessage - show limit exceeded message (true or false)
- limitMessageText - text of limit exceeded message
- limitMessagePostfix - postfix of limit exceeded message(e.g. files or images)
- unique - unique selected files
DOWNLOAD MULTIFILE - JQUERY PLUGIN (zip file)
Example
How to use
Setup
To use Multifile, include these three files in your header:
<link rel="stylesheet" type="text/css" href="./css/jquery.multifile.css" media="screen" />
<script type="text/javascript" src="./js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="./js/jquery.multifile.min.js"></script>
Markup
Required Tags and Attributes:
- tag input type = file,
- attributes id and name (e.g. id="multifile", name="uploadedFile[]")
Name of input must be an array.
<form action="" method="">
<input type="file" id="multifile" name="uploadedFile[]" method="" />
</form>
Initialize
To use Multifile, include these two files in your header:
<script type="text/javascript">
<!--
$(document).ready(function() {
$("#multifile").multifile();
}
//-->
</script>
License
Multifile jQuery plugin is licensed under the Creative Commons Attribution 2.5 License.
Author
Homepage: http://www.frantatoman.cz
Email: info@frantatoman.cz