Uploadify is a powerful, highly customizable file upload plug-in, the implementation of the effect is very good, with progress shown. In the simplest way, uploadify can run with very little code.
Uploadify Official Download Address: http://www.uploadify.com/download/
Test examples
Here is a simple example to use:
Here we use the Uploadify package with the PHP test script as the upload processing, so here installed Wamp as a test environment for PHP, in the PHP Web site root directory, extract the above download good uploadify file, and create a file upload save directory, Here we created the uploads as a file save directory in Uploadify's decompression directory.
Create the uploadify_test.php file and add the following:
Uploadify plug-in hint $ ("#id"). Uploadify is not a function error possible cause
Swfobject.js and Jquery.uploadify.v2.1.4.min.js are using the jquery API, so these two files need to rely on the Jquery-1.4.2.min.js file.
Under normal circumstances need to introduce the following JS files:
<script type= "Text/javascript" src= "uploadify-v2.1.4/jquery-1.4.2.min.js" ></script>
<script Type= "Text/javascript" src= "uploadify-v2.1.4/swfobject.js" ></script>
<script type= "text/" JavaScript "src=" Uploadify-v2.1.4/jquery.uploadify.v2.1.4.min.js ></script>
And in the project already exists another jquery JS file, resulting in file conflicts. And another jquery file introduction location in the above three JS file to introduce the location of the back, at this time the project is used in the original jquery js file, This error is reported because there is no definition of the jquery-related function available when the Jquery.uploadify.v2.1.4.min.js file is loaded.
Workaround:
Remove one of the jquery JS files and put the swfobject.js and jquery.uploadify.v2.1.4.min.js files in the back of the JS file where jquery is introduced.