<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for My (mostly technical) blog</title>
	<atom:link href="http://sabbour.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://sabbour.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Nov 2009 23:45:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by dani</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-226</link>
		<dc:creator>dani</dc:creator>
		<pubDate>Tue, 10 Nov 2009 23:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-226</guid>
		<description>sabbour ... next will read the intro before the code ;-)

and thanks, it&#039;s a great component ...

cheers</description>
		<content:encoded><![CDATA[<p>sabbour &#8230; next will read the intro before the code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>and thanks, it&#8217;s a great component &#8230;</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by sabbour</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-225</link>
		<dc:creator>sabbour</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-225</guid>
		<description>@dani: Hello!
Please note that the most updated version with all of those problems fixed is now on GitHub as mentioned in the first post 
http://github.com/tute/Thumbnail-component-for-CakePHP/</description>
		<content:encoded><![CDATA[<p>@dani: Hello!<br />
Please note that the most updated version with all of those problems fixed is now on GitHub as mentioned in the first post<br />
<a href="http://github.com/tute/Thumbnail-component-for-CakePHP/" rel="nofollow">http://github.com/tute/Thumbnail-component-for-CakePHP/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by dani</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-223</link>
		<dc:creator>dani</dc:creator>
		<pubDate>Tue, 10 Nov 2009 20:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-223</guid>
		<description>hello

got it all figured out, parts of thge problems i was experiencing had been pointed out in rpevious comments

...

As i was sayin, in the code reported at the beginning of the post there seems to be a mismatch between the signature of upload_image_and_thumbnail and its call in the controller.

To summarize the changes that did it for me, in case anyone was havin my same problems:

___

In 

($this-&gt;data,&quot;name1&quot;, 573,380,80,80, &quot;sets&quot;)

&quot;name1&quot; should be removed and $this-&gt;data replaced with $this-&gt;data[&quot;Image&quot;][&quot;name1&quot;]

And in the view 

echo $form-&gt;file(&#039;Image/name1&#039;, array(&#039;size&#039; =&gt; &#039;40&#039;));

should be

echo $form-&gt;file(&#039;Image.name1&#039;, array(&#039;size&#039; =&gt; &#039;40&#039;));


Please feedback if this is wrong ..

cheers</description>
		<content:encoded><![CDATA[<p>hello</p>
<p>got it all figured out, parts of thge problems i was experiencing had been pointed out in rpevious comments</p>
<p>&#8230;</p>
<p>As i was sayin, in the code reported at the beginning of the post there seems to be a mismatch between the signature of upload_image_and_thumbnail and its call in the controller.</p>
<p>To summarize the changes that did it for me, in case anyone was havin my same problems:</p>
<p>___</p>
<p>In </p>
<p>($this-&gt;data,&#8221;name1&#8243;, 573,380,80,80, &#8220;sets&#8221;)</p>
<p>&#8220;name1&#8243; should be removed and $this-&gt;data replaced with $this-&gt;data["Image"]["name1"]</p>
<p>And in the view </p>
<p>echo $form-&gt;file(&#8216;Image/name1&#8242;, array(&#8217;size&#8217; =&gt; &#8216;40&#8242;));</p>
<p>should be</p>
<p>echo $form-&gt;file(&#8216;Image.name1&#8242;, array(&#8217;size&#8217; =&gt; &#8216;40&#8242;));</p>
<p>Please feedback if this is wrong ..</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by dani</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-222</link>
		<dc:creator>dani</dc:creator>
		<pubDate>Tue, 10 Nov 2009 20:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-222</guid>
		<description>another thing is buggin me ...

the signature for upload_image_and_thumbnail is 

($data, $maxw, $maxh, $thumbscalew, $thumbscaleh, $folderName)

so why do u call 

$this-&gt;Image-&gt;upload_image_and_thumbnail($this-&gt;data,&quot;name1&quot;, 573,380,80,80, &quot;sets&quot;

Am i missin something ... ?

cheers</description>
		<content:encoded><![CDATA[<p>another thing is buggin me &#8230;</p>
<p>the signature for upload_image_and_thumbnail is </p>
<p>($data, $maxw, $maxh, $thumbscalew, $thumbscaleh, $folderName)</p>
<p>so why do u call </p>
<p>$this-&gt;Image-&gt;upload_image_and_thumbnail($this-&gt;data,&#8221;name1&#8243;, 573,380,80,80, &#8220;sets&#8221;</p>
<p>Am i missin something &#8230; ?</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by dani</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-221</link>
		<dc:creator>dani</dc:creator>
		<pubDate>Tue, 10 Nov 2009 20:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-221</guid>
		<description>Hello

Kind of new to cakePhp ... tryin to use thia component but i keep getting 

Undefined index:  name [APP\controllers\components\image.php, line 45]

Any idea ... ?

Thanks</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Kind of new to cakePhp &#8230; tryin to use thia component but i keep getting </p>
<p>Undefined index:  name [APP\controllers\components\image.php, line 45]</p>
<p>Any idea &#8230; ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by Casmo</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-218</link>
		<dc:creator>Casmo</dc:creator>
		<pubDate>Tue, 27 Oct 2009 22:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-218</guid>
		<description>Nice job! There is a small typo in your view as already said in the comments:
echo $form-&gt;file(&#039;Image/name1&#039;, array(&#039;size&#039; =&gt; &#039;40&#039;));
should be:
echo $form-&gt;file(&#039;Image.name1&#039;, array(&#039;size&#039; =&gt; &#039;40&#039;));</description>
		<content:encoded><![CDATA[<p>Nice job! There is a small typo in your view as already said in the comments:<br />
echo $form-&gt;file(&#8216;Image/name1&#8242;, array(&#8217;size&#8217; =&gt; &#8216;40&#8242;));<br />
should be:<br />
echo $form-&gt;file(&#8216;Image.name1&#8242;, array(&#8217;size&#8217; =&gt; &#8216;40&#8242;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Image Upload and Resize Component for CakePHP 1.2 by Vladzur&#39;s Blog &#187; Componente para subir y redimensionar imágenes en CakePHP</title>
		<link>http://sabbour.wordpress.com/2008/05/13/image-upload-and-resize-component-for-cakephp-12/#comment-217</link>
		<dc:creator>Vladzur&#39;s Blog &#187; Componente para subir y redimensionar imágenes en CakePHP</dc:creator>
		<pubDate>Mon, 26 Oct 2009 03:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=14#comment-217</guid>
		<description>[...] Ver componente aquí. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ver componente aquí. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by Kevin</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-216</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 12 Oct 2009 20:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-216</guid>
		<description>Using this in a &#039;gallery_controller&#039;, how would i use this to edit the gallery details, and upload multiple images in to an image mysql table related to that gallery???</description>
		<content:encoded><![CDATA[<p>Using this in a &#8216;gallery_controller&#8217;, how would i use this to edit the gallery details, and upload multiple images in to an image mysql table related to that gallery???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhanced: Image Upload Component for CakePHP 1.2 by Yeison Ramirez</title>
		<link>http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/#comment-215</link>
		<dc:creator>Yeison Ramirez</dc:creator>
		<pubDate>Thu, 01 Oct 2009 19:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=26#comment-215</guid>
		<description>Muchas Gracias!!!! Thanks So much!!!! Saludos desde Colombia!!!!</description>
		<content:encoded><![CDATA[<p>Muchas Gracias!!!! Thanks So much!!!! Saludos desde Colombia!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Image Upload and Resize Component for CakePHP 1.2 by Bainco</title>
		<link>http://sabbour.wordpress.com/2008/05/13/image-upload-and-resize-component-for-cakephp-12/#comment-214</link>
		<dc:creator>Bainco</dc:creator>
		<pubDate>Wed, 30 Sep 2009 16:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://sabbour.wordpress.com/?p=14#comment-214</guid>
		<description>Hi, thanks for sharing that code. 

I also had the PHP error “no such file do directory” problem, because the mkdir cannot create 2 dir at once ; it has to create the parent $folderName dir, then the big and small dir.
Hope it will help !

 Here&#039;s my code :

$tempuploaddir = &#039;img/temp&#039;; // the /temp/ directory, should delete the image after we upload
					$dad=&#039;img/&#039;.$folderName.&#039;&#039;;
					$biguploaddir = &#039;img/&#039;.$folderName.&#039;/big&#039;; // the /big/ directory
					$smalluploaddir = &#039;img/&#039;.$folderName.&#039;/small&#039;; // the /small/ directory for thumbnails
					
					
					// Make sure the required directories exist, and create them if necessary
					if(!is_dir($tempuploaddir)) {mkdir($tempuploaddir);}					
					if(!is_dir($dad)) {mkdir($dad);}	//must create the parent dir ; it won&#039;t work without it				
					if(!is_dir($biguploaddir)) {mkdir($biguploaddir);}										
					if(!is_dir($smalluploaddir)) {mkdir($smalluploaddir);}</description>
		<content:encoded><![CDATA[<p>Hi, thanks for sharing that code. </p>
<p>I also had the PHP error “no such file do directory” problem, because the mkdir cannot create 2 dir at once ; it has to create the parent $folderName dir, then the big and small dir.<br />
Hope it will help !</p>
<p> Here&#8217;s my code :</p>
<p>$tempuploaddir = &#8216;img/temp&#8217;; // the /temp/ directory, should delete the image after we upload<br />
					$dad=&#8217;img/&#8217;.$folderName.&#8221;;<br />
					$biguploaddir = &#8216;img/&#8217;.$folderName.&#8217;/big&#8217;; // the /big/ directory<br />
					$smalluploaddir = &#8216;img/&#8217;.$folderName.&#8217;/small&#8217;; // the /small/ directory for thumbnails</p>
<p>					// Make sure the required directories exist, and create them if necessary<br />
					if(!is_dir($tempuploaddir)) {mkdir($tempuploaddir);}<br />
					if(!is_dir($dad)) {mkdir($dad);}	//must create the parent dir ; it won&#8217;t work without it<br />
					if(!is_dir($biguploaddir)) {mkdir($biguploaddir);}<br />
					if(!is_dir($smalluploaddir)) {mkdir($smalluploaddir);}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
