Implementation of the plug-in is very easy and only relies on one JQuery function call to initiate.



Similar documents
State of Michigan Data Exchange Gateway. Web-Interface Users Guide

JW Player for Flash and HTML5

Tutorial JavaScript: Switching panels using a radio button

How to Add a Transparent Flash FLV movie to your Web Page Tutorial by R. Berdan Oct

Using SSH Secure Shell Client for FTP

Aspera Connect User Guide

Content Management System Help. basic tutorial on Evergreen s CMS

JTouch Mobile Extension for Joomla! User Guide

s sent to the FaxFinder fax server must meet the following criteria to be processed for sending as a fax:

jquery Tutorial for Beginners: Nothing But the Goods

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

The purpose of jquery is to make it much easier to use JavaScript on your website.

Kentico CMS Web Parts

JW Player Quick Start Guide

Table of Contents. Overview Supported Platforms Demos/Downloads Known Issues Note Included Files...

Dell SonicWALL SRA 7.5 Secure Virtual Meeting and Secure Virtual Assist

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

ISL Online Integration Manual

Working With Your FTP Site

Microsoft FrontPage 2003

Using Adobe Dreamweaver CS4 (10.0)

Tracking Network Changes Using Change Audit

Detailed Ad Specifications Rev. 20/03/2015 Babatunde Akinse

HELIX MEDIA LIBRARY API DEVELOPER S GUIDE

Aspera Connect User Guide

Please select one of the topics below.

Bitrix Site Manager ASP.NET. Installation Guide

Aspera Connect User Guide

Distributor Control Center Private Label/Channel Administrators

ATTENDANCE USING THE GENESIS AUTO DIALER FUNCTION

MASTERTAG DEVELOPER GUIDE

7. Data Packager: Sharing and Merging Data

WP Popup Magic User Guide

Bulk Image Downloader v3.0 User's Guide

Using Websense Data Endpoint Client Software

Short Manual Intellect v SP2 module Unipos Contents:

ProperSync 1.3 User Manual. Rev 1.2

BT CONTENT SHOWCASE. JOOMLA EXTENSION User guide Version 2.1. Copyright 2013 Bowthemes Inc.

Designing and Implementing Forms 34

Advantage for Windows Copyright 2012 by The Advantage Software Company, Inc. All rights reserved. Client Portal blue Installation Guide v1.

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

DNNCentric Custom Form Creator. User Manual

Evaluator s Guide. PC-Duo Enterprise HelpDesk v5.0. Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved.

Technical Support Set-up Procedure

Pulse Secure Client. Customization Developer Guide. Product Release 5.1. Document Revision 1.0. Published:

Weather Widget Usage Guide

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

Capture Pro Software FTP Server System Output

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

Setting up a Scheduled task to upload pupil records to ParentPay

You can view, download or upload files through the WEB interface or FTP link depending on Type of access you have been granted.

TIBCO Spotfire Automation Services 6.5. User s Manual

1: 2: : 3.1: 3.2: 4: 5: & CAPTCHA

Global Image Management System For epad-vision. User Manual Version 1.10

HP Operations Manager Software for Windows Integration Guide

DiskPulse DISK CHANGE MONITOR

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

SQL2report User Manual

Advanced Tornado TWENTYONE Advanced Tornado Accessing MySQL from Python LAB

There are numerous ways to access monitors:

How To Use Titanium Studio

USER GUIDE MANTRA WEB EXTRACTOR.

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

Project 2: Web Security Pitfalls

Using TViX Network. NFS mode : You must install the TViX NetShare utility in to your PC, but you can play the TP or DVD jukebox without stutter.

HOW TO CREATE AN HTML5 JEOPARDY- STYLE GAME IN CAPTIVATE

White Paper Using PHP Site Assistant to create sites for mobile devices

Flash MX Image Animation

Managing Software and Configurations

Jim2 ebusiness Framework Installation Notes

Tizen Web Runtime. Device API

Kaseya 2. User Guide. Version 1.1

**Web mail users: Web mail provides you with the ability to access your via a browser using a "Hotmail-like" or "Outlook 2003 like" interface.

San Joaquin County Office of Education Career & Technical Education Web Design ~ Course Outline CBEDS#: 4601

The Smart Forms Web Part allows you to quickly add new forms to SharePoint pages, here s how:

How To Write A File Station In Android.Com (For Free) On A Microsoft Macbook Or Ipad (For A Limited Time) On An Ubuntu 8.1 (For Ubuntu) On Your Computer Or Ipa (For

WP Popup Magic User Guide

Settings 1 September 2015

Managing Documents in the Citrix XenApp Remote Desktop

Georgia State Longitudinal Data System

Dreamweaver Tutorial - Dreamweaver Interface

This matches a date in the MM/DD/YYYY format in the years The date must include leading zeros.

Help. F-Secure Online Backup

Sizmek Formats. IAB Mobile Pull. Build Guide

Web Page Redirect. Application Note

Slide.Show Quick Start Guide

Version 1.0 January Xerox Phaser 3635MFP Extensible Interface Platform

Bulk Downloader. Call Recording: Bulk Downloader

UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT

OrgPublisher 11 Web Administration Installation for Windows 2008 Server

SnagIt Add-Ins User Guide

Content Management System

A-AUTO 50 for Windows Setup Guide

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

Transcription:

Uploadify v2.1.0 2009 by Ronnie Garcia Developed by Ronnie Garcia and Travis Nickels www.uploadify.com www.ronniesan.com WHAT IS IT? This plug-in allows you to change any element with an ID attribute on your page into a single or multiple file upload tool. The plug-in uses a mix of JQuery, Flash, and a backend upload script in the language of your choice to send files from your local computer to your website server. HOW DO I IMPLEMENT IT? Implementation of the plug-in is very easy and only relies on one JQuery function call to initiate. 1. Download the latest zip package from http://www.uploadify.com 2. Extract the files and upload them to your server (for the most basic installation, upload all files to the same folder). 3. Link the jquery script, swfobject script and the Uploadify plug-in to the page you will be using it on. You can do so with the following code in the <head> section of your page: <script type="text/javascript" src="/path/to/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/path/to/swfobject.js" <script type="text/javascript" src="/path/to/jquery.uploadify.v2.1.0.min.js"></script> 4. Add the call to the plug-in using the $.ready event in the <head> section of your page: <script type="text/javascript"> $(document).ready(function() { $('#someid').uploadify({ 'uploader': '/path/to/uploadify.swf', 'script': '/path/to/uploadify.php', 'folder': '/path/to/uploads-folder', 'cancelimg': '/path/to/cancel.png' }); }); </script> When the document is done loading, the elements that the function was called against will be hidden and replaced by the browse button. The component is now ready to use on your page.

AVAILABLE OPTIONS uploader script The path to the uploader.swf file. For absolute paths prefix the path with either '/' or 'http' Default = 'uploader.swf' The path to the backend script that will be processing your uploaded files. For absolute paths prefix the path with either '/' or 'http' Default = 'upload.php' checkscript The relative path to the backend script that will check if the file selected already resides on the server. No Default. 'check.php' is provided with core files. scriptdata An object containing name/value pairs of additional information you would like sent to the upload script. {'name': 'value'} filedataname The name of your files array in the upload server script. Default = 'Filedata' method Set the method for sending scriptdata to the backend script. Either 'GET' or 'POST'. Default is set to 'POST'. scriptaccess The access mode for scripts in the flash file. If you are testing locally, set to 'always'. Default = 'samedomain' folder The path to the folder you would like to save the files to. Do not end the path with a '/'. For absolute paths prefix the path with either '/' or 'http'. Note server security issues with trying to upload to remote destinations. queueid The ID of the element you want to use as your file queue. By default, one is created on the fly below the 'Browse' button. queuesizelimit The limit of the number of items that can be in the queue at one time. Default = 999. multi Set to true if you want to allow multiple file uploads. auto Set to true if you would like the files to be uploaded when they are selected. filedesc The text that will appear in the file type drop down at the bottom of the browse dialog box. fileext A list of file extensions you would like to allow for upload. Format like '*.ext1;*. ext2;*.ext3'. filedesc is required when using this option. sizelimit A number representing the limit in bytes for each upload. simuploadlimit A limit to the number of simultaneous uploads you would like to allow. Default:1. buttontext The text you would like to appear on the default button. Default = 'BROWSE' buttonimg The path to the image you will be using for the browse button. hidebutton Set to true if you want to hide the button image.

rollover Set to true if you would like to activate rollover states for your browse button. To prepare your browse button for rollover states, simple add the 'over' and 'press' states below the normal state in a single file. See below for an example: *Mouseover events are inconsistent in Flash 9 so you may see a short lag when using the rollover option. width The width of the button image / flash file. Default = 30 height The height of the button image / flash file. If rollover is set to true, this should be 1/3 the height of the actual file. Default = 110 wmode Set to transparent to make the background of the flash file transparent. If set to transparent, the flash file will be at the top-most layer of the page. By omitting the buttonimg option and setting wmode to transparent, the entire flash file will be transparent, allowing you layer content below it or style the button using CSS. Default = 'opaque' cancelimg The path to the default cancel image. Default = 'cancel.png' oninit A function that triggers when the script is loaded. The default event handler hides the targeted element on the page and replaces it with the flash file, then creates a queue container after it. The default function will not trigger if the value of your custom function returns false. For custom functions, you can access the html for the flash file using the variable flashelement. onselect A function that triggers for each element selected. The default event handler generates a 6 character random string as the unique identifier for the file item and creates a file queue item for the file. The default event handler will not trigger if the value of your custom function returns false. Three arguments are passed to the function: queueid: The unique identifier of the file that was selected.

onselectonce A function that triggers once for each select operation. There is no default event handler. Two arguments are sent to the function: data: An object containing details about the select operation. filecount The total number of files in the queue filesselected The number of files selected in the select operation filesreplaced The number of files that were replaced in the queue allbytestotal The total number of bytes for all files in the queue oncancel A function that triggers when a file upload is cancelled or removed from the queue. The default event handler removes the file from the upload queue. The default event handler will not trigger if the value of your custom function returns false. Four arguments are sent to the function: queueid: The unique identifier of the file that was cancelled. data: Details about the file queue. filecount The total number of files left in the queue allbytestotal The total number of bytes left for all files in the queue onclearqueue A function that triggers when the fileuploadclearqueue function is called. The default event handler removes all queue items from the upload queue. The default event handler will not trigger if the value of your custom function returns false. One arguments is sent to the function: onqueuefull A function that triggers when the file queue has reached maximum capacity. The default event alerts the user of the queue size. Two arguments are sent to the function: event - The event object. queuesizelimit - The maximum size of the queue. onerror A function that triggers when an error occurs during the upload process. The default event handler attaches an error message to the queue item returning the error and changes it's queue item container to red. Four arguments are sent to the function: queueid: The unique identifier of the file that was errored.

errorobj: An object containing details about the error returned. type Either 'HTTP', 'IO', or 'Security' info An error message describing the type of error returned onopen A function that fires when a file in the queue is opened by Flash for upload. There is no default function. Three arguments are sent to the function: queueid: The unique identifier of the file that was opened. onprogress A function that fires each time the progress of a file upload changes. The default function updates the progress bar in the file queue item. The default function will not trigger if the value of your custom function returns false. Four arguments are sent to function: queueid: The unique identifier of the file that was updated. data: An object containing details about the upload and queue. percentage The current percentage completed for the upload bytesloaded The current amount of bytes uploaded allbytesloaded The current amount of bytes loaded for all files in the queue speed The current upload speed in KB/s

oncomplete A function that triggers when a file upload has completed. The default function removes the file queue item from the upload queue. The default function will not trigger if the value of your custom function returns false. Four arguments are sent to the function: queueid: The unique identifier of the file that was completed. filepath The path on the server to the uploaded file response: The data sent back from the server. data: Details about the file queue. filecount The total number of files left in the queue speed The average speed of the file upload in KB/s onallcomplete A function that triggers when all file uploads have completed. There is no default event handler. Two arguments are sent to the function: data: An object containing details about the upload process. filesuploaded The total number of files uploaded errors The total number of errors while uploading allbytesloaded The total number of bytes uploaded speed The average speed of all uploaded files oncheck A function that triggers when an existing file is detected on the server. The default event handler opens a confirmation box. Five arguments are sent to the function: checkscript: The path to the file checking script. filequeue: A file queue object consisting of key/value pairs with the queue ID as the key and the filename as the value. folder: The path to the upload folder. single: True if only one file is being uploaded from the queue.

RELATED FUNCTIONS uploadifysettings A function used to change options for a fileupload object. Two arguments are available, one is required: Setting - The option to change. Value - The value to change the option to. If left blank, this function will return the current value of the setting. The following example will change the upload folder to '/uploads': $('#someid').uploadifysettings('folder','/uploads'); The following example will return the simuploadlimit: $(' #someid').uploadifysettings('simuploadlimit'); The following options can be : buttonimg, buttontext, cancelimg, filedesc, fileext, width, height, folder, script, scriptdata, simuploadlimit, sizelimit, hidebutton The following will return the current size of the queue $('#someid').uploadifysettings('queuesize'); When using scriptdata enter it in {key1 : value1, key2 : value2, } format. $('#someid').uploadifysettings('scriptdata', {'name' : some.val()}); If the key already exists it will update it, if it doesn't exist it will add it. You no longer need to re-write every key/value pair. When requesting scriptdata it will return the key/value pairs as an object. uploadifyupload A function used to begin an upload of a single file or all files in the queue. One argument is optional: queueid: The unqiue queue identifier for the file to upload. The following example will upload all files in the queue: $('#someid').uploadifyupload(); uploadifycancel A function used to remove a file from the queue or stop an upload in progress. One argument is required. queueid: The unique queue identifier of the file you wish to cancel. The following example will remove a file from the upload queue: $('#someid').uploadifycancel('nfjshs'); uploadifyclearqueue A function used to clear all files from the upload queue. The following example clears the file upload queue: $('#someid').uploadifyclearqueue();