<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adventures In Development &#187; Flash</title>
	<atom:link href="http://www.adventuresindevelopment.com/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adventuresindevelopment.com</link>
	<description>Web Development Tools, Ideas, Techniques and Resources</description>
	<lastBuildDate>Fri, 27 Aug 2010 04:11:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Make an AJAX-like Multiple File Uploader with Uploadify</title>
		<link>http://www.adventuresindevelopment.com/2009/05/20/make-an-ajax-like-multiple-file-uploader-with-uploadify/</link>
		<comments>http://www.adventuresindevelopment.com/2009/05/20/make-an-ajax-like-multiple-file-uploader-with-uploadify/#comments</comments>
		<pubDate>Wed, 20 May 2009 18:40:41 +0000</pubDate>
		<dc:creator>Matthew Paulson</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=68</guid>
		<description><![CDATA[I&#8217;m currently working on an file manager that will be integrated with the content management system software that we developed. In doing this, I&#8217;ve been looking for a solution that would allow users to upload multiple files at once, does so in a very easy to use way and shows a progress bar. For this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on an file manager that will be integrated with the content management system software that we developed. In doing this, I&#8217;ve been looking for a solution that would allow users to upload multiple files at once, does so in a very easy to use way and shows a progress bar. For this project, I don&#8217;t really need to interact with ASP.NET at all for a database, so I can look at some of the JavaScript &amp; Flash solutions that are out there. The solution that I eventually settled on was <a href="http://www.uploadify.com/">Uploadify</a>. The tool is actually a combination of Flash and JQuery. It&#8217;s very customizable in the functionality that it offers as well as the design of the system.</p>
<p>I was at first concerned because the solution only supports PHP, however members of the Uploadify development community have developed a replacement server-sidescript that will replace the &#8220;upload.php&#8221; file with a .NET version. You can find <a href="http://www.uploadify.com/forum/viewtopic.php?f=5&amp;t=45">that code on their forums here</a>.</p>
<p><strong>Here&#8217;s what Uploadify looks like in action:</strong></p>
<p><a href="http://www.adventuresindevelopment.com/wp-content/uploads/2009/05/uploadify-example.jpg"><img class="alignnone size-full wp-image-69" title="uploadify-example" src="http://www.adventuresindevelopment.com/wp-content/uploads/2009/05/uploadify-example.jpg" alt="uploadify-example" width="364" height="312" /></a></p>
<p><strong><span style="text-decoration: underline;">Implementing Uploadify</span></strong></p>
<p><strong>Getting Started:</strong></p>
<p>So how do we implement Uploadify? It&#8217;s actually easier than many JQuery modules that are out there. The first thing you&#8217;ll need is the Uploadify Core <a href="http://www.uploadify.com/">that can be downloaded from the Uploadify website</a>. You can also download code for several examples of implementations of code. The core it self comes with a PDF manual as well.</p>
<p><strong>Script References:</strong></p>
<p>You&#8217;ll need to reference the latest version of the JQuery Core was well as the Uploadify JavaScript file:</p>
<p><code>&lt;link rel="stylesheet" href="uploadify/uploadify.css" type="text/css" /&gt;<br />
&lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript" src="js/jquery.uploadify.js"&gt;&lt;/script&gt;<br />
</code><br />
<strong>Making a Placeholder:</strong></p>
<p>You&#8217;ll need a placeholder DIV that the script can use to draw the upload tool on the page somewhere in the &lt;BODY&gt; tag:</p>
<p><code>&lt;div id="fileUpload1"&gt;&lt;/div&gt;</code></p>
<p><strong>Calling the Script:</strong></p>
<p>Now, all we need to do is call the uploader when the page loads:</p>
<p><code>&lt;script type="text/javascript"&gt;<br />
$(document).ready(function() {<br />
 $("#fileUpload1").fileUpload({<br />
  'uploader': 'uploadify/uploader.swf',<br />
  'cancelImg': 'uploadify/cancel.png',<br />
  'script': 'uploadify/upload.php',<br />
  'folder': 'files',<br />
  'multi': true,<br />
  'buttonText': 'Select Files',<br />
  'checkScript': 'uploadify/check.php',<br />
  'displayData': 'speed',<br />
  'simUploadLimit': 2<br />
 });<br />
});<br />
&lt;/script&gt;<br />
</code><br />
That&#8217;s all it really takes to implement Uploadify. You might want to modify some of the settings in it to customize the uploader to your needs, but it&#8217;s a really great solution.</p>
<p><strong>Here are some common options that you can play with in the settings:</strong></p>
<ul>
<li>&#8220;CheckScript&#8221; and &#8220;Script&#8221;  -&gt; Be sure to change these if you are using the .NET solution</li>
<li>sizeLimit -&gt; Limit the file size of the upload (in bytes)</li>
<li>Height &amp; Width -&gt; Change the dimensions of the container DIV</li>
<li>fileExt -&gt; Limit the type of file extensions that you allow.</li>
<li>ButtonText &amp; ButtonIMG -&gt; Customize the look of the upload button</li>
<li><a href="http://www.uploadify.com/documentation/">There&#8217;s a full list in the Uploadify Website</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.adventuresindevelopment.com/2009/05/20/make-an-ajax-like-multiple-file-uploader-with-uploadify/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
