<?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: Image Upload Component (CakePHP)</title>
	<atom:link href="http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/</link>
	<description>I break it. I fix it. You learn.</description>
	<lastBuildDate>Fri, 12 Feb 2010 14:46:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: CakePHP Additives &#124; Candes Projects &#124; Cristian Neagu - Web designer &#38; developer</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-108</link>
		<dc:creator>CakePHP Additives &#124; Candes Projects &#124; Cristian Neagu - Web designer &#38; developer</dc:creator>
		<pubDate>Tue, 26 Feb 2008 15:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-108</guid>
		<description>[...] Image upload Component [...]</description>
		<content:encoded><![CDATA[<p>[...] Image upload Component [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koa</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-86</link>
		<dc:creator>Koa</dc:creator>
		<pubDate>Thu, 24 Jan 2008 17:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-86</guid>
		<description>&lt;strong&gt; Jeff&lt;/strong&gt;, good call. Things have been changed back.

This upload component has been used with over 15 projects without a problem. I&#039;m going to assume whatever kinks existed upon release have pretty much been smoothed over.

A big thanks goes out to everyone who contributed to building this killer component!</description>
		<content:encoded><![CDATA[<p><strong> Jeff</strong>, good call. Things have been changed back.</p>
<p>This upload component has been used with over 15 projects without a problem. I&#8217;m going to assume whatever kinks existed upon release have pretty much been smoothed over.</p>
<p>A big thanks goes out to everyone who contributed to building this killer component!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-78</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 21 Jan 2008 14:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-78</guid>
		<description>If you look at Ruben&#039;s post it creates the problem. 

Where he takes

if(!in_array($this-&gt;ext($fileName),$this-&gt;_allowed)){ 

into

if(!in_array($this-&gt;ext($fileType),$this-&gt;_allowed)){

it should be that only reversed so that you change it from $fileType to $fileName</description>
		<content:encoded><![CDATA[<p>If you look at Ruben&#8217;s post it creates the problem. </p>
<p>Where he takes</p>
<p>if(!in_array($this-&gt;ext($fileName),$this-&gt;_allowed)){ </p>
<p>into</p>
<p>if(!in_array($this-&gt;ext($fileType),$this-&gt;_allowed)){</p>
<p>it should be that only reversed so that you change it from $fileType to $fileName</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koa</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-76</link>
		<dc:creator>Koa</dc:creator>
		<pubDate>Mon, 21 Jan 2008 04:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-76</guid>
		<description>&lt;strong&gt;Jeff&lt;/strong&gt;, please have a look at the &lt;a href=&quot;#updates&quot; rel=&quot;nofollow&quot;&gt;updates&lt;/a&gt; above - I believe this problem has been fixed.</description>
		<content:encoded><![CDATA[<p><strong>Jeff</strong>, please have a look at the <a href="#updates" rel="nofollow">updates</a> above &#8211; I believe this problem has been fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-75</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 21 Jan 2008 02:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-75</guid>
		<description>Ok, figured out some things that I think someone may need to look at.

I traced my problem to the upload.php component file. Specifically to the ext() function that determines what a image&#039;s file extension is. apparently it is being fed the fileType not the fileName, the ext() function is looking for the fileName to determine the the extension. 

Now based on the comment by Ruben, that was changed from that for some reason.

To give further info - this is running on an Apache 2.2 server being uploaded from FireFox.

Hope this helps</description>
		<content:encoded><![CDATA[<p>Ok, figured out some things that I think someone may need to look at.</p>
<p>I traced my problem to the upload.php component file. Specifically to the ext() function that determines what a image&#8217;s file extension is. apparently it is being fed the fileType not the fileName, the ext() function is looking for the fileName to determine the the extension. </p>
<p>Now based on the comment by Ruben, that was changed from that for some reason.</p>
<p>To give further info &#8211; this is running on an Apache 2.2 server being uploaded from FireFox.</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-62</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Wed, 16 Jan 2008 10:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-62</guid>
		<description>Great work! I just had to change
 
&lt;code&gt;if(!in_array($this-&gt;ext($fileName),$this-&gt;_allowed)){&lt;/code&gt;

into

&lt;code&gt;if(!in_array($this-&gt;ext($fileType),$this-&gt;_allowed)){&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Great work! I just had to change</p>
<p><code>if(!in_array($this->ext($fileName),$this->_allowed)){</code></p>
<p>into</p>
<p><code>if(!in_array($this->ext($fileType),$this->_allowed)){</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nil</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-61</link>
		<dc:creator>nil</dc:creator>
		<pubDate>Tue, 15 Jan 2008 07:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-61</guid>
		<description>&lt;code&gt;Undefined index:  Image [CORE\app\controllers\images_controller.php, line 19]&lt;/code&gt;

when i m uploading any photo i get this error and photo is not saving in my mysql table.

plz help me.

Thanks</description>
		<content:encoded><![CDATA[<p><code>Undefined index:  Image [CORE\app\controllers\images_controller.php, line 19]</code></p>
<p>when i m uploading any photo i get this error and photo is not saving in my mysql table.</p>
<p>plz help me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koa</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-58</link>
		<dc:creator>Koa</dc:creator>
		<pubDate>Tue, 08 Jan 2008 21:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-58</guid>
		<description>&lt;strong&gt;malik&lt;/strong&gt;, great work! Thank you for posting your solution.</description>
		<content:encoded><![CDATA[<p><strong>malik</strong>, great work! Thank you for posting your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DudeWheresMyLife</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-57</link>
		<dc:creator>DudeWheresMyLife</dc:creator>
		<pubDate>Tue, 08 Jan 2008 21:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-57</guid>
		<description>ya weird i actually get the same message!

Parse error: syntax error, unexpected &#039;;&#039;, expecting T_FUNCTION in /usr/www/virtual/user/www.example.com/app/models/image.php on line 47</description>
		<content:encoded><![CDATA[<p>ya weird i actually get the same message!</p>
<p>Parse error: syntax error, unexpected &#8216;;&#8217;, expecting T_FUNCTION in /usr/www/virtual/user/www.example.com/app/models/image.php on line 47</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webMenace</title>
		<link>http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/comment-page-1/#comment-56</link>
		<dc:creator>webMenace</dc:creator>
		<pubDate>Tue, 08 Jan 2008 21:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/#comment-56</guid>
		<description>Hey guys.. i get the following error:

Parse error: syntax error, unexpected &#039;;&#039;, expecting T_FUNCTION in /usr/www/virtual/ljmenace/www.whitepridenation.com/app/models/image.php on line 47


so its PROBABBBLYY my eyes playing tricks on me.. where am i forgetting to close something or ??? 

Thanksss! 

PS GREAT HELP component by the way.</description>
		<content:encoded><![CDATA[<p>Hey guys.. i get the following error:</p>
<p>Parse error: syntax error, unexpected &#8216;;&#8217;, expecting T_FUNCTION in /usr/www/virtual/ljmenace/www.whitepridenation.com/app/models/image.php on line 47</p>
<p>so its PROBABBBLYY my eyes playing tricks on me.. where am i forgetting to close something or ??? </p>
<p>Thanksss! </p>
<p>PS GREAT HELP component by the way.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
