、
例子效果为:
官网下载地址:
http://www.uploadify.com
一、参考官网文档,调试出一个最简单的例子,官网文档地址为:http://www.uploadify.com/documentation/描述如下:
Before implementing an instance of Uploadify, make sure the minimum requirements are met:
∙jQuery 1.4.x or greater
∙swfObject 2.2 or greater
∙Flash Player 9.0.24 or greater
Download the latest zip package. Extract the following files to a folder named "uploadify" in the root of your website.
∙
∙jquery.uploadify.v2.1.4.min.js
∙jquery-1.4.2.min.js
∙swfobject.js
∙uploadify.css
∙uploadify.php
∙uploadify.swf
Save a new page to the root directory of your website and paste the following code into the section:
Head Section
1.
2.
3.
4.
5.
*Make sure the folder you are uploading to exists and has write permissions.
In the body section of the page, add the following code:
Body Section
1.
When the page is loaded, the file input will automatically be replaced with the Uploadify file uploader.
∙We highly recommend using paths that are relative to the root (AKA begin with a /). If this isn't possible, Uploadify does play nice with links that are relative to the page.
∙Every element that Uploadify is applied to MUST have a unique ID attribute. You can reference elements via class, but each element must have a unique ID.
For a more customized uploader, use the options below.
说明:
以上例子为全英文,调试出的例子如下:
16.
17.
18.
19.
20.
55.
56.
57.
58. This is my JSP page.
59.
60.
61.
62.
63.
.