<?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: HTML5 File Uploads with jQuery</title>
	<atom:link href="http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/</link>
	<description>Web Development Tutorials &#38; Resources</description>
	<lastBuildDate>Mon, 20 May 2013 02:06:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Envy</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-81127</link>
		<dc:creator>Envy</dc:creator>
		<pubDate>Sat, 27 Apr 2013 09:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-81127</guid>
		<description><![CDATA[I had the same problem. Files got copied into the uploads folder but the progress bar stopped at 40-50%. Examining the html by the show source command in the web browser showed that the binary data was made from the pic i uploaded. So here was no feedback from the server to the browser displaying that the upload was done. Examining with phpinfo() showed that the webserver by the provider was running php 4XX. So no json was available.
My localhost runs php 5xx and everything works fine. I used the same files/code on both machines. Json must be available to run this script.]]></description>
		<content:encoded><![CDATA[<p>I had the same problem. Files got copied into the uploads folder but the progress bar stopped at 40-50%. Examining the html by the show source command in the web browser showed that the binary data was made from the pic i uploaded. So here was no feedback from the server to the browser displaying that the upload was done. Examining with phpinfo() showed that the webserver by the provider was running php 4XX. So no json was available.<br />
My localhost runs php 5xx and everything works fine. I used the same files/code on both machines. Json must be available to run this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simone</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-80503</link>
		<dc:creator>Simone</dc:creator>
		<pubDate>Thu, 04 Apr 2013 20:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-80503</guid>
		<description><![CDATA[Hi,
Congratulations for the tutorial, I have the following problem once the image is placed in the charging up to 50% and through the console I display the following message:

ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead. jquery.filedrop.js:311
XHR finished loading: &quot;http://clubprive.netsons.org/upload.php&quot;. jquery.filedrop.js:311
XMLHttpRequest.sendAsBinary jquery.filedrop.js:311
send

How can I fix the problem?]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Congratulations for the tutorial, I have the following problem once the image is placed in the charging up to 50% and through the console I display the following message:</p>
<p>ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead. jquery.filedrop.js:311<br />
XHR finished loading: &quot;http://clubprive.netsons.org/upload.php&quot;. jquery.filedrop.js:311<br />
XMLHttpRequest.sendAsBinary jquery.filedrop.js:311<br />
send</p>
<p>How can I fix the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-79775</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Wed, 20 Mar 2013 11:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-79775</guid>
		<description><![CDATA[You&#039;re actually pretty close, but you forgot enctype attribute in the form tag. 
This will work:
&lt;form method=&quot;post&quot; action=&quot;test.php&quot; enctype=&quot;multipart/form-data&quot;&gt;&lt;input type=&quot;file&quot; name=&quot;pic&quot; id=&quot;pic&quot; /&gt;&lt;input type=&quot;submit&quot; value=&quot;Upload&quot; /&gt;&lt;/form&gt;

However, this will only upload the image to the webserver. You&#039;ll need to write something yourself to actually display the image on the page.]]></description>
		<content:encoded><![CDATA[<p>You're actually pretty close, but you forgot enctype attribute in the form tag.<br />
This will work:<br />
&lt;form method=&quot;post&quot; action=&quot;test.php&quot; enctype=&quot;multipart/form-data&quot;&gt;&lt;input type=&quot;file&quot; name=&quot;pic&quot; id=&quot;pic&quot; /&gt;&lt;input type=&quot;submit&quot; value=&quot;Upload&quot; /&gt;&lt;/form&gt;</p>
<p>However, this will only upload the image to the webserver. You'll need to write something yourself to actually display the image on the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-79774</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Wed, 20 Mar 2013 11:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-79774</guid>
		<description><![CDATA[If you&#039;re on Linux, try this command in the root folder of the project:

sudo chown www-data:www-data uploads

This will set the webserver as the owner of the uploads folder. The webserver username is www-data and the groupname is also www-data.

Also, if you&#039;re using Firebug, you should see the php-call in the net-tab. See what error it gives. If it&#039;s something with permissions, the above command will be the solution.]]></description>
		<content:encoded><![CDATA[<p>If you're on Linux, try this command in the root folder of the project:</p>
<p>sudo chown www-data:www-data uploads</p>
<p>This will set the webserver as the owner of the uploads folder. The webserver username is www-data and the groupname is also www-data.</p>
<p>Also, if you're using Firebug, you should see the php-call in the net-tab. See what error it gives. If it's something with permissions, the above command will be the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-79074</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 10 Mar 2013 02:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-79074</guid>
		<description><![CDATA[This happened to me too. If you have Chrome, go on your page, hit F12 to display the debugger.
Click on the &quot;Network&quot; tab.
Start an upload.
You should see some activity appearing. 
Click on the element &#039;post_file.php&#039; and then the &quot;Preview&quot; tab.
You should see what happened. 
For me, the &quot;uploads&quot; directory was missing.]]></description>
		<content:encoded><![CDATA[<p>This happened to me too. If you have Chrome, go on your page, hit F12 to display the debugger.<br />
Click on the &quot;Network&quot; tab.<br />
Start an upload.<br />
You should see some activity appearing.<br />
Click on the element 'post_file.php' and then the &quot;Preview&quot; tab.<br />
You should see what happened.<br />
For me, the &quot;uploads&quot; directory was missing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marian Stevens</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-78956</link>
		<dc:creator>Marian Stevens</dc:creator>
		<pubDate>Fri, 08 Mar 2013 17:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-78956</guid>
		<description><![CDATA[I am wanting to integrate this with MySQL as well - I need some form fields on the page to capture information about the photos being uploaded, and it seems obvious to ID them for selecting the values() in jQuery and passing that to the php handler form which can parse everything and make entries into the database as well as handle the uploads - but I&#039;m not sure where my starting point is in passing extra form fields as I don&#039;t see a DataString jumping out at me to send the info via AJAX.  I&#039;d appreciate any suggestions.

I had been using Uploadify but my hosting company shut it down with security issues.  This seems to handle security/file size issues as well as file types.  I had covered file types when I modified Uploadify but I also need to get away from Flash completely and Uploadify relied on Flash.]]></description>
		<content:encoded><![CDATA[<p>I am wanting to integrate this with MySQL as well - I need some form fields on the page to capture information about the photos being uploaded, and it seems obvious to ID them for selecting the values() in jQuery and passing that to the php handler form which can parse everything and make entries into the database as well as handle the uploads - but I'm not sure where my starting point is in passing extra form fields as I don't see a DataString jumping out at me to send the info via AJAX.  I'd appreciate any suggestions.</p>
<p>I had been using Uploadify but my hosting company shut it down with security issues.  This seems to handle security/file size issues as well as file types.  I had covered file types when I modified Uploadify but I also need to get away from Flash completely and Uploadify relied on Flash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ALIREZA</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-78102</link>
		<dc:creator>ALIREZA</dc:creator>
		<pubDate>Mon, 18 Feb 2013 10:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-78102</guid>
		<description><![CDATA[hi
thanks for this instruction.
I have a problem.When I drag the image into the box, uploaded.. But there is no link to download.How can this feature be added?
When you upload a photo, the address should be to download.
thanks]]></description>
		<content:encoded><![CDATA[<p>hi<br />
thanks for this instruction.<br />
I have a problem.When I drag the image into the box, uploaded.. But there is no link to download.How can this feature be added?<br />
When you upload a photo, the address should be to download.<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nestor Leone</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-77370</link>
		<dc:creator>Nestor Leone</dc:creator>
		<pubDate>Sat, 12 Jan 2013 19:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-77370</guid>
		<description><![CDATA[Any luck on this ??? I&#039;m trying to do so too, but i&#039;m not that good on PHP.....]]></description>
		<content:encoded><![CDATA[<p>Any luck on this ??? I'm trying to do so too, but i'm not that good on PHP.....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-77362</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 12 Jan 2013 08:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-77362</guid>
		<description><![CDATA[Hi,
i used your code and it working fine with the url set as &quot;url: &#039;post_file.php&#039;,&quot; but when i replaced the url location with 
              	url: &#039;&lt;?php echo site_url(&#039;media/upload_featureimage&#039;);?&gt;&#039;,
which is the controller/function_name, enabling the file upload in CI....it doesn&#039;t work! The progress stops in the middle and the file is not getting uploaded!]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
i used your code and it working fine with the url set as &quot;url: 'post_file.php',&quot; but when i replaced the url location with<br />
              	url: '&lt;?php echo site_url('media/upload_featureimage');?&gt;',<br />
which is the controller/function_name, enabling the file upload in CI....it doesn't work! The progress stops in the middle and the file is not getting uploaded!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/#comment-77231</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Sat, 05 Jan 2013 20:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=1621#comment-77231</guid>
		<description><![CDATA[I am hoping you can help me understand why this is not working.

I have implemented your code into my website and it is working fine the files get uploaded to the directory but I need to make one change and it is not working.  I want to change the uploaded file name to a php variable $petitionid set when the page is first loaded but the variable ends up being empty when it runs the following code in your post_file.php so I end up getting a file name of _banner.jpg

I am assuming this has something to do with that the php file is being called from javascript so the variables on the original page our out of scope?  Any idea how I can get the information from this variable on the original page?

	// Move the uploaded file from the temporary 
	// directory to the uploads folder:
	
	if(move_uploaded_file($pic[&#039;tmp_name&#039;], $upload_dir.$petitionid.&quot;_banner.&quot;.get_extension($pic[&#039;name&#039;]))){
		exit_status(&#039;File was uploaded successfuly!&#039;);
	}
]]></description>
		<content:encoded><![CDATA[<p>I am hoping you can help me understand why this is not working.</p>
<p>I have implemented your code into my website and it is working fine the files get uploaded to the directory but I need to make one change and it is not working.  I want to change the uploaded file name to a php variable $petitionid set when the page is first loaded but the variable ends up being empty when it runs the following code in your post_file.php so I end up getting a file name of _banner.jpg</p>
<p>I am assuming this has something to do with that the php file is being called from javascript so the variables on the original page our out of scope?  Any idea how I can get the information from this variable on the original page?</p>
<p>	// Move the uploaded file from the temporary<br />
	// directory to the uploads folder:</p>
<p>	if(move_uploaded_file($pic['tmp_name'], $upload_dir.$petitionid.&quot;_banner.&quot;.get_extension($pic['name']))){<br />
		exit_status('File was uploaded successfuly!');<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 288/292 objects using apc
Content Delivery Network via cdn.tutorialzine.com

 Served from: tutorialzine.com @ 2013-05-21 22:49:10 by W3 Total Cache -->