<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Multiple File Upload with Flash and Ruby on Rails</title>
	<atom:link href="http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/</link>
	<description>Let us toast your non-idiocy</description>
	<lastBuildDate>Wed, 20 Jul 2011 10:41:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Federico</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1654</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Tue, 04 Jan 2011 17:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1654</guid>
		<description>Hi!

It&#039;s very good this tutorial but the link to the plug-in that solve the Rails problem is  broken (to place in directory: vendor/plugins). Do you know where i can find it?

Thx to everyone.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>It&#8217;s very good this tutorial but the link to the plug-in that solve the Rails problem is  broken (to place in directory: vendor/plugins). Do you know where i can find it?</p>
<p>Thx to everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: methir</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1638</link>
		<dc:creator>methir</dc:creator>
		<pubDate>Fri, 05 Nov 2010 16:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1638</guid>
		<description>i have tryed like this, but not works

stop();
System.security.allowDomain (&quot;*&quot;);
import flash.net.FileReferenceList;
import flash.net.FileReference;
var fileRef:FileReferenceList;
var fileRefListener:Object;
var list:Array;

var listenerObject:Object = new Object();

var item:Number;
var totalByte:Number = 0;
var percentBar:Number=0;
var currentFile:Number = 0;
var fileComplete:String=&quot; 0 files&quot;;
var mPhp:String;
var ei1:Boolean;
	
var listFiles:Array;
var allTypes:Array = new Array();
var imageTypes:Object = new Object();
var maxFileSize:Number = 0;
var fileTypeDes : String = &quot;All files&quot;;
var fileTypes : String = &quot;*.*&quot;
	
	
listFiles = [];
imageTypes.description = fileTypeDes;
imageTypes.extension = fileTypes;
allTypes.push(imageTypes);		
fileRef = new FileReferenceList();
fileRefListener = new Object();
fileRef.addListener(fileRefListener);
		
upload_listener.onSelect = function(fileRefList:FileReferenceList) {
	for (var i: Number=0; i&lt;fileRefList.fileList.length; i++){
		var file : FileReference = fileRefList.fileList[i];
	}
	copyArr(list, fileRefList.fileList);		
	var list_dp = new Array();			
	for (var i:Number = 0; i&lt;list.length; i++) {
		list_dp.push({name:list[i].name, size:Math.round(list[i].size/1000)+&quot; kb&quot;, status:&quot;ready for upload&quot;});						
	}
}


// onOpen
upload_listener.onOpen= function(file:FileReference) {
}
// onProgress
upload_listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number) {
}
// onComplete
upload_listener.onComplete= function(file:FileReference) {	
	if (currentFile&lt;list.length) {
		listFiles.push(file.name);
		currentFile++;			
		upload();
	} else {
		currentFile =0;					
	}				
	for (var i:Number = 0; i&lt;list.length; i++) {
		if (list[i].name == file.name) {
			fStatus.text += &quot;complete&quot;;			
		}
	}
}
//onHTTPError
upload_listener.onHTTPError= function(file:FileReference, httpError:Number) {
}
upload_listener.onIOError= function(file:FileReference) {
}
// onSecurityError
upload_listener.onSecurityError= function(file:FileReference, errorString:String) {
}

function copyArr(tar,src: Array){
	for (var i: Number =0; i&lt;src.length; i++){
		tar.push(src[i]);
	}
}
function upload() {
	var file = list[currentFile];
	file.upload(&quot;uploadfiles.php&quot;);
}
function browse() {
	currentFile = 0;
	percentBar = 0;
	totalByte = 0;
	fileRef.browse(allTypes);
}
bt1.onRelease = function(){
	browse();
}
bt2.onRelease = function(){
	upload()
}</description>
		<content:encoded><![CDATA[<p>i have tryed like this, but not works</p>
<p>stop();<br />
System.security.allowDomain (&#8221;*&#8221;);<br />
import flash.net.FileReferenceList;<br />
import flash.net.FileReference;<br />
var fileRef:FileReferenceList;<br />
var fileRefListener:Object;<br />
var list:Array;</p>
<p>var listenerObject:Object = new Object();</p>
<p>var item:Number;<br />
var totalByte:Number = 0;<br />
var percentBar:Number=0;<br />
var currentFile:Number = 0;<br />
var fileComplete:String=&#8221; 0 files&#8221;;<br />
var mPhp:String;<br />
var ei1:Boolean;</p>
<p>var listFiles:Array;<br />
var allTypes:Array = new Array();<br />
var imageTypes:Object = new Object();<br />
var maxFileSize:Number = 0;<br />
var fileTypeDes : String = &#8220;All files&#8221;;<br />
var fileTypes : String = &#8220;*.*&#8221;</p>
<p>listFiles = [];<br />
imageTypes.description = fileTypeDes;<br />
imageTypes.extension = fileTypes;<br />
allTypes.push(imageTypes);<br />
fileRef = new FileReferenceList();<br />
fileRefListener = new Object();<br />
fileRef.addListener(fileRefListener);</p>
<p>upload_listener.onSelect = function(fileRefList:FileReferenceList) {<br />
	for (var i: Number=0; i&lt;fileRefList.fileList.length; i++){<br />
		var file : FileReference = fileRefList.fileList[i];<br />
	}<br />
	copyArr(list, fileRefList.fileList);<br />
	var list_dp = new Array();<br />
	for (var i:Number = 0; i&lt;list.length; i++) {<br />
		list_dp.push({name:list[i].name, size:Math.round(list[i].size/1000)+&quot; kb&quot;, status:&quot;ready for upload&quot;});<br />
	}<br />
}</p>
<p>// onOpen<br />
upload_listener.onOpen= function(file:FileReference) {<br />
}<br />
// onProgress<br />
upload_listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number) {<br />
}<br />
// onComplete<br />
upload_listener.onComplete= function(file:FileReference) {<br />
	if (currentFile&lt;list.length) {<br />
		listFiles.push(file.name);<br />
		currentFile++;<br />
		upload();<br />
	} else {<br />
		currentFile =0;<br />
	}<br />
	for (var i:Number = 0; i&lt;list.length; i++) {<br />
		if (list[i].name == file.name) {<br />
			fStatus.text += &quot;complete&quot;;<br />
		}<br />
	}<br />
}<br />
//onHTTPError<br />
upload_listener.onHTTPError= function(file:FileReference, httpError:Number) {<br />
}<br />
upload_listener.onIOError= function(file:FileReference) {<br />
}<br />
// onSecurityError<br />
upload_listener.onSecurityError= function(file:FileReference, errorString:String) {<br />
}</p>
<p>function copyArr(tar,src: Array){<br />
	for (var i: Number =0; i&lt;src.length; i++){<br />
		tar.push(src[i]);<br />
	}<br />
}<br />
function upload() {<br />
	var file = list[currentFile];<br />
	file.upload(&quot;uploadfiles.php&quot;);<br />
}<br />
function browse() {<br />
	currentFile = 0;<br />
	percentBar = 0;<br />
	totalByte = 0;<br />
	fileRef.browse(allTypes);<br />
}<br />
bt1.onRelease = function(){<br />
	browse();<br />
}<br />
bt2.onRelease = function(){<br />
	upload()<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: methir</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1637</link>
		<dc:creator>methir</dc:creator>
		<pubDate>Fri, 05 Nov 2010 16:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1637</guid>
		<description>hi, very nice scrpt, have a ask.

how can i implete this in my flash without use the class. i mean how to change to as2 script without using the class.

thanks</description>
		<content:encoded><![CDATA[<p>hi, very nice scrpt, have a ask.</p>
<p>how can i implete this in my flash without use the class. i mean how to change to as2 script without using the class.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [Flash 8] - Multi Upload - Scheiter Nach der 3 File - Flashforum</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1636</link>
		<dc:creator>[Flash 8] - Multi Upload - Scheiter Nach der 3 File - Flashforum</dc:creator>
		<pubDate>Fri, 05 Nov 2010 09:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1636</guid>
		<description>[...] folgende beim googlen gefunden es funktioniert auch.  LINK  wie kann ich als reine as code, ohne laden der klasse [...]</description>
		<content:encoded><![CDATA[<p>[...] folgende beim googlen gefunden es funktioniert auch.  LINK  wie kann ich als reine as code, ohne laden der klasse [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Polet</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1591</link>
		<dc:creator>Nick Polet</dc:creator>
		<pubDate>Sun, 15 Aug 2010 23:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1591</guid>
		<description>Hi Alastair,

I am trying to upload a zip file to rails from flash using the fzip library for flash. I am having a difficult time getting this to work, getting errors from flash that I cannot figure out, and the logs from ruby dont really tell me much in the way of whats going wrong. I saw that one of your comments, you mention that a buddy of yours managed to transfer zip files from flash to rails and I was wondering if you knew anything about how this could be done. I have tried everything within my knowledge of flash and rails to try and get past this but am having a real crazy time with it. I have tried to find a contact email to get in touch with you about this, but couldnt find any and I dont have a linkedIn account.

Great post and blog by the way, found some useful tips and resources in here.

Regards</description>
		<content:encoded><![CDATA[<p>Hi Alastair,</p>
<p>I am trying to upload a zip file to rails from flash using the fzip library for flash. I am having a difficult time getting this to work, getting errors from flash that I cannot figure out, and the logs from ruby dont really tell me much in the way of whats going wrong. I saw that one of your comments, you mention that a buddy of yours managed to transfer zip files from flash to rails and I was wondering if you knew anything about how this could be done. I have tried everything within my knowledge of flash and rails to try and get past this but am having a real crazy time with it. I have tried to find a contact email to get in touch with you about this, but couldnt find any and I dont have a linkedIn account.</p>
<p>Great post and blog by the way, found some useful tips and resources in here.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-1505</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 07 Jan 2010 18:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-1505</guid>
		<description>Thank you for posting this tutorial.  Can you email me the plugin fix from bubbleshare?  According to their site, they are no longer operating.

Thanks,

Frank</description>
		<content:encoded><![CDATA[<p>Thank you for posting this tutorial.  Can you email me the plugin fix from bubbleshare?  According to their site, they are no longer operating.</p>
<p>Thanks,</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-990</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Fri, 28 Aug 2009 14:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-990</guid>
		<description>Anyone using Amazon S3 who is interested in uploading multiple files directly to S3 without hitting the server might be interested in my posts here:

http://www.railstoolkit.com/posts/fancyupload-amazon-s3-uploader-with-paperclip
http://www.railstoolkit.com/posts/uploading-files-directly-to-amazon-s3-using-fancyupload</description>
		<content:encoded><![CDATA[<p>Anyone using Amazon S3 who is interested in uploading multiple files directly to S3 without hitting the server might be interested in my posts here:</p>
<p><a href="http://www.railstoolkit.com/posts/fancyupload-amazon-s3-uploader-with-paperclip" rel="nofollow">http://www.railstoolkit.com/posts/fancyupload-amazon-s3-uploader-with-paperclip</a><br />
<a href="http://www.railstoolkit.com/posts/uploading-files-directly-to-amazon-s3-using-fancyupload" rel="nofollow">http://www.railstoolkit.com/posts/uploading-files-directly-to-amazon-s3-using-fancyupload</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: midjar</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-978</link>
		<dc:creator>midjar</dc:creator>
		<pubDate>Sat, 22 Aug 2009 07:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-978</guid>
		<description>Hi,

Great info. Been using this for over a year.
Got a new server this week and now onProgress and onComplete is no longer invoked/fired.
Anyone that can give me a clue what this can be?

Best regards,
M</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great info. Been using this for over a year.<br />
Got a new server this week and now onProgress and onComplete is no longer invoked/fired.<br />
Anyone that can give me a clue what this can be?</p>
<p>Best regards,<br />
M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: midjar</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-977</link>
		<dc:creator>midjar</dc:creator>
		<pubDate>Sat, 22 Aug 2009 06:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-977</guid>
		<description>hi,

Works great locally but on my server there&#039;s no feed back when uploading. Looks like it never starts. But the file is uploaded.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>Works great locally but on my server there&#8217;s no feed back when uploading. Looks like it never starts. But the file is uploaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.alastairdawson.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/comment-page-3/#comment-949</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 08 Aug 2009 09:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/#comment-949</guid>
		<description>Is the &quot;integration&quot; of this script only with PHP, FLASH and ActionScript difficult?
I mean, withouth rails?

Regards</description>
		<content:encoded><![CDATA[<p>Is the &#8220;integration&#8221; of this script only with PHP, FLASH and ActionScript difficult?<br />
I mean, withouth rails?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

