mkty / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

jQuery Multiple File Upload

Overview

This jQuery Multiple File Upload Plugin ($.MultiFile) is a non-obstrusive plugin for jQuery that helps users easily select multiple files for upload quickly and easily on your server whilst also providing some basic validation functionality to help developers idenfity simple errors, without having to submit the form (ie.: upload files).


Installation


Basic Usage

Just add the class="multi" to your file input element:

<input type="file" class="multi"/>

Use the maxlength property if you want to limit the number of files selected. Server-side validation is always required

<input type="file" class="multi" maxlength="2"/>

Use the accept if you only want files of a certain extension to be selected Separate valid extensions with a "|", like this: "jpg|gif|png". Server-side validation is always required.

<input type="file" class="multi" accept="gif|jpg"/>