<?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: The File API has changed</title>
	<atom:link href="http://www.thecssninja.com/javascript/fileapi/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thecssninja.com/javascript/fileapi</link>
	<description>All things CSS, JavaScript &#38; HTML</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:46:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-5056</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Wed, 21 Dec 2011 06:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-5056</guid>
		<description>@zero - 

There&#039;s been a long standing bug in Chrome not supporting &lt;a href=&quot;http://code.google.com/p/chromium/issues/detail?id=48367&quot; rel=&quot;nofollow&quot;&gt;DOM2 event binding&lt;/a&gt; on &lt;code&gt;FileReader()&lt;/code&gt;.

However you can use &lt;a href=&quot;https://github.com/ryanseddon/font-dragr/blob/master/public/scripts/src/_views.js#L151&quot; rel=&quot;nofollow&quot;&gt;DOM0 event binding&lt;/a&gt; to get around in the mean time.</description>
		<content:encoded><![CDATA[<p>@zero &#8211; </p>
<p>There&#8217;s been a long standing bug in Chrome not supporting <a href="http://code.google.com/p/chromium/issues/detail?id=48367" rel="nofollow">DOM2 event binding</a> on <code>FileReader()</code>.</p>
<p>However you can use <a href="https://github.com/ryanseddon/font-dragr/blob/master/public/scripts/src/_views.js#L151" rel="nofollow">DOM0 event binding</a> to get around in the mean time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zero</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-4082</link>
		<dc:creator>zero</dc:creator>
		<pubDate>Thu, 01 Dec 2011 08:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-4082</guid>
		<description>Can the demo work?

Uncaught TypeError: Object # has no method &#039;addEventListener&#039;</description>
		<content:encoded><![CDATA[<p>Can the demo work?</p>
<p>Uncaught TypeError: Object # has no method &#8216;addEventListener&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nenad</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-3591</link>
		<dc:creator>Nenad</dc:creator>
		<pubDate>Tue, 22 Nov 2011 14:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-3591</guid>
		<description>Hi Ninja!

Great work! I was inspired by your drag and drop uploader so I rewrote it and optimized it to work also in chrome browser.

The demo is on:

http://www.ninja-scripts.com/demos/drag/

and the uploaded files:

http://www.ninja-scripts.com/demos/drag/files

Regards,
Nenad</description>
		<content:encoded><![CDATA[<p>Hi Ninja!</p>
<p>Great work! I was inspired by your drag and drop uploader so I rewrote it and optimized it to work also in chrome browser.</p>
<p>The demo is on:</p>
<p><a href="http://www.ninja-scripts.com/demos/drag/" rel="nofollow">http://www.ninja-scripts.com/demos/drag/</a></p>
<p>and the uploaded files:</p>
<p><a href="http://www.ninja-scripts.com/demos/drag/files" rel="nofollow">http://www.ninja-scripts.com/demos/drag/files</a></p>
<p>Regards,<br />
Nenad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barbieru Gabriel</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2668</link>
		<dc:creator>Barbieru Gabriel</dc:creator>
		<pubDate>Fri, 05 Aug 2011 14:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2668</guid>
		<description>Similar to your code i&#039;ve came up with this
http://www.ashantyk-design.com/dev-3-Upload%27em+JS

I said similar because i pulled out the % loading thing because that shows the progress of the file being loaded into the browser, not the server and i put in a connection limit part with queueing.

Also i extended the delete/cancel function. users can delete uploaded files after upload completion, using a session variable so they won&#039;t delete any files that they didn&#039;t uploaded (security reasons)</description>
		<content:encoded><![CDATA[<p>Similar to your code i&#8217;ve came up with this<br />
<a href="http://www.ashantyk-design.com/dev-3-Upload%27em+JS" rel="nofollow">http://www.ashantyk-design.com/dev-3-Upload%27em+JS</a></p>
<p>I said similar because i pulled out the % loading thing because that shows the progress of the file being loaded into the browser, not the server and i put in a connection limit part with queueing.</p>
<p>Also i extended the delete/cancel function. users can delete uploaded files after upload completion, using a session variable so they won&#8217;t delete any files that they didn&#8217;t uploaded (security reasons)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton Babushkin</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2664</link>
		<dc:creator>Anton Babushkin</dc:creator>
		<pubDate>Thu, 04 Aug 2011 01:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2664</guid>
		<description>Hi Ryan,

Thanks so much for providing this demo. The code reads really well and is a great starting point I feel for many developers (including me) getting their head around the Drag and Drop capabilities.

Keep up the great work.</description>
		<content:encoded><![CDATA[<p>Hi Ryan,</p>
<p>Thanks so much for providing this demo. The code reads really well and is a great starting point I feel for many developers (including me) getting their head around the Drag and Drop capabilities.</p>
<p>Keep up the great work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2661</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Wed, 03 Aug 2011 02:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2661</guid>
		<description>@&lt;a href=&quot;#comment-2653&quot; rel=&quot;nofollow&quot;&gt;pilus&lt;/a&gt; - 

Yes I too came across DOM2 event handling not working on FileReader, I &lt;a href=&quot;http://code.google.com/p/chromium/issues/detail?id=48367&quot; rel=&quot;nofollow&quot;&gt;filed a bug&lt;/a&gt; a long time ago but it still hasn&#039;t been fixed.

Haven&#039;t come across your issue with readAsBinaryString not working. Do you have a testcase for this?</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-2653" rel="nofollow">pilus</a> &#8211; </p>
<p>Yes I too came across DOM2 event handling not working on FileReader, I <a href="http://code.google.com/p/chromium/issues/detail?id=48367" rel="nofollow">filed a bug</a> a long time ago but it still hasn&#8217;t been fixed.</p>
<p>Haven&#8217;t come across your issue with readAsBinaryString not working. Do you have a testcase for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2656</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Fri, 29 Jul 2011 13:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2656</guid>
		<description>I went through all the above post but your are redirecting to http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload when ever some one asks for the server side script.

I tried many ways with $_POST, $_FILES and then finally file_get_contents(&quot;php://input&quot;).  $_POST and file_get_contents(&quot;php://input&quot;) are returning some data which is not giveing proper result when  sent to  image tag in PHP as below
$file_data = file_get_contents(&quot;php://input&quot;);
print &quot;&quot;;

This is not useful for me until I store the posted data into server.

If anyone have got success with PHP. Please paste the code in this thread.

Thanks</description>
		<content:encoded><![CDATA[<p>I went through all the above post but your are redirecting to <a href="http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload" rel="nofollow">http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload</a> when ever some one asks for the server side script.</p>
<p>I tried many ways with $_POST, $_FILES and then finally file_get_contents(&#8220;php://input&#8221;).  $_POST and file_get_contents(&#8220;php://input&#8221;) are returning some data which is not giveing proper result when  sent to  image tag in PHP as below<br />
$file_data = file_get_contents(&#8220;php://input&#8221;);<br />
print &#8220;&#8221;;</p>
<p>This is not useful for me until I store the posted data into server.</p>
<p>If anyone have got success with PHP. Please paste the code in this thread.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pilus</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2653</link>
		<dc:creator>pilus</dc:creator>
		<pubDate>Thu, 21 Jul 2011 14:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2653</guid>
		<description>tested the live demo on chrome 12.0.742.112/Win, there&#039;s an error popped out on the devtool&#039;s console, it says: 

Object # has no method &#039;addEventListener&#039;
on: /demo/drag-drop_upload/v2/:114

I think the latest File API don&#039;t have addEventListener or something, but i&#039;ve successfully implemented the same functionality using:

FileReader.onloadend = function(){};

and it works on chrome 12, FF4/5, and opera 11

the only problem that I have is with readAsBinaryString on file larger than 100KB, the onloadend seems to never called, even after waiting for 10 minutes (yupz, i actually waited for that long .... @__@)

as you might already know, i use readAsBinaryString for uploading to the server ... but i never got a chance to upload anything, as everytime i try to readAsBinaryString it never ends ... &gt;.&lt;

would really appreciate some help, tried googling this, but doesn&#039;t seem to be anything to help me ... 

in the meantime will try to slice the file for readAsBinaryString, it that&#039;s possible at all ...

cheers</description>
		<content:encoded><![CDATA[<p>tested the live demo on chrome 12.0.742.112/Win, there&#8217;s an error popped out on the devtool&#8217;s console, it says: </p>
<p>Object # has no method &#8216;addEventListener&#8217;<br />
on: /demo/drag-drop_upload/v2/:114</p>
<p>I think the latest File API don&#8217;t have addEventListener or something, but i&#8217;ve successfully implemented the same functionality using:</p>
<p>FileReader.onloadend = function(){};</p>
<p>and it works on chrome 12, FF4/5, and opera 11</p>
<p>the only problem that I have is with readAsBinaryString on file larger than 100KB, the onloadend seems to never called, even after waiting for 10 minutes (yupz, i actually waited for that long &#8230;. @__@)</p>
<p>as you might already know, i use readAsBinaryString for uploading to the server &#8230; but i never got a chance to upload anything, as everytime i try to readAsBinaryString it never ends &#8230; &gt;.&lt;</p>
<p>would really appreciate some help, tried googling this, but doesn&#039;t seem to be anything to help me &#8230; </p>
<p>in the meantime will try to slice the file for readAsBinaryString, it that&#039;s possible at all &#8230;</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2616</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Fri, 24 Jun 2011 01:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2616</guid>
		<description>@&lt;a href=&quot;#comment-2606&quot; rel=&quot;nofollow&quot;&gt;Enrico&lt;/a&gt; - 

If you read the comments you&#039;ll see I mention *many* times where to find server side help.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-2606" rel="nofollow">Enrico</a> &#8211; </p>
<p>If you read the comments you&#8217;ll see I mention *many* times where to find server side help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.thecssninja.com/javascript/fileapi/comment-page-1#comment-2606</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Mon, 20 Jun 2011 09:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=530#comment-2606</guid>
		<description>Thank you very much for your the effort into this code, but please let me say that it is quite useless without a working upload.php file. I read the links you provided about and tried long to work it out, but without success. Many of us are not so proficiency in PHP to change the code to fit it into your example. So, meanwhile some guru publishes here a working upload.php, none of us will fully enjoy your code in our applications.</description>
		<content:encoded><![CDATA[<p>Thank you very much for your the effort into this code, but please let me say that it is quite useless without a working upload.php file. I read the links you provided about and tried long to work it out, but without success. Many of us are not so proficiency in PHP to change the code to fit it into your example. So, meanwhile some guru publishes here a working upload.php, none of us will fully enjoy your code in our applications.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

