<?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"
	>
<channel>
	<title>Comments on: An Image Upload Extension for YUI Rich Text Editor</title>
	<atom:link href="http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/</link>
	<description>Where stuff from my brain lands</description>
	<pubDate>Wed, 20 Aug 2008 03:22:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-545</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 01 Jul 2008 15:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-545</guid>
		<description>You'll have to tweak the style sheet appropriately for IE.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll have to tweak the style sheet appropriately for IE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeoffrey</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-543</link>
		<dc:creator>Jeoffrey</dc:creator>
		<pubDate>Mon, 30 Jun 2008 09:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-543</guid>
		<description>I've a display problem.
In Mozilla it works just fine but in IE the created textbox 'insertimage_upload' has an width from 0px.Everything works fine, including the upload, only I can 't see the selected path+file.
Ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve a display problem.<br />
In Mozilla it works just fine but in IE the created textbox &#8216;insertimage_upload&#8217; has an width from 0px.Everything works fine, including the upload, only I can &#8216;t see the selected path+file.<br />
Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maxg</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-542</link>
		<dc:creator>maxg</dc:creator>
		<pubDate>Fri, 27 Jun 2008 17:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-542</guid>
		<description>Has anyone gotten this to work with a ColdFusion based upload handler? Even with the revised script setting the encoding variable of the posted form, CF still returns the The cffile action="upload" requires forms to use enctype="multipart/form-data" error. Anyone had this problem?</description>
		<content:encoded><![CDATA[<p>Has anyone gotten this to work with a ColdFusion based upload handler? Even with the revised script setting the encoding variable of the posted form, CF still returns the The cffile action=&#8221;upload&#8221; requires forms to use enctype=&#8221;multipart/form-data&#8221; error. Anyone had this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-526</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 09 Jun 2008 13:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-526</guid>
		<description>It's the path of the uploader script.  The uploader script can be whatever you wish.  I'll edit the page to reflect that correctly.  Also, if you post the link to your example that isn't working, we can probably find out why.

-Dennis</description>
		<content:encoded><![CDATA[<p>It&#8217;s the path of the uploader script.  The uploader script can be whatever you wish.  I&#8217;ll edit the page to reflect that correctly.  Also, if you post the link to your example that isn&#8217;t working, we can probably find out why.</p>
<p>-Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek198</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-523</link>
		<dc:creator>abhishek198</dc:creator>
		<pubDate>Fri, 06 Jun 2008 13:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-523</guid>
		<description>Hi Daniel,
In the function yuiImgUploader(a,b,c) ...
the second parameter as per the example specified above is  the path of the directory where the image will be uploaded ..
but if you see the comments .. it says path of the uploader script .. which one of these is correct ..
and is there any constraint on the name of the uploader script...


Thanks</description>
		<content:encoded><![CDATA[<p>Hi Daniel,<br />
In the function yuiImgUploader(a,b,c) &#8230;<br />
the second parameter as per the example specified above is  the path of the directory where the image will be uploaded ..<br />
but if you see the comments .. it says path of the uploader script .. which one of these is correct ..<br />
and is there any constraint on the name of the uploader script&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek198</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-522</link>
		<dc:creator>abhishek198</dc:creator>
		<pubDate>Fri, 06 Jun 2008 10:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-522</guid>
		<description>Hi Dennis,
I was trying to use the RTE ..
but when i click on the upload image button… nothing actually happens ..as far as i see it .. the link points to the same page .. instead of some other page to upload the image ..

this is what i have edited :
yuiImgUploader(myEditor, ‘/img_uploader.php’,'image’);

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Dennis,<br />
I was trying to use the RTE ..<br />
but when i click on the upload image button… nothing actually happens ..as far as i see it .. the link points to the same page .. instead of some other page to upload the image ..</p>
<p>this is what i have edited :<br />
yuiImgUploader(myEditor, ‘/img_uploader.php’,&#8217;image’);</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-518</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 27 May 2008 22:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-518</guid>
		<description>You're correct that you need additional server programming.  On the &lt;a href="http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/" rel="nofollow"&gt;PHP RichText example&lt;/a&gt;, someone posted some server code in asp.net.  Perhaps that will help you.</description>
		<content:encoded><![CDATA[<p>You&#8217;re correct that you need additional server programming.  On the <a href="http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/" rel="nofollow">PHP RichText example</a>, someone posted some server code in asp.net.  Perhaps that will help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rami</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-517</link>
		<dc:creator>Rami</dc:creator>
		<pubDate>Tue, 27 May 2008 22:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-517</guid>
		<description>Hey, I am beginner with JavaScripts..I need to take the innet html from the C# file .. how can i do that????What I know is that it is client server side..
Thx</description>
		<content:encoded><![CDATA[<p>Hey, I am beginner with JavaScripts..I need to take the innet html from the C# file .. how can i do that????What I know is that it is client server side..<br />
Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-283</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 22 Jan 2008 21:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-283</guid>
		<description>@Lars:  I thought it was probably something to do with the form encoding but hadn't had a chance to work on it.  Thank you for posting back the solution.  I've updated the script with your solution.

If you've previously downloaded the script, you ought to do so again to get the latest version with this fix.</description>
		<content:encoded><![CDATA[<p>@Lars:  I thought it was probably something to do with the form encoding but hadn&#8217;t had a chance to work on it.  Thank you for posting back the solution.  I&#8217;ve updated the script with your solution.</p>
<p>If you&#8217;ve previously downloaded the script, you ought to do so again to get the latest version with this fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-280</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Mon, 21 Jan 2008 20:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-280</guid>
		<description>To get this working in Safari I needed to set the encoding of the enclosing form to "multipart/form-data".  Below this line:
var img_elem=Dom.get('insertimage_url');

I added:
Dom.getAncestorByTagName(img_elem, 'form').encoding = 'multipart/form-data';</description>
		<content:encoded><![CDATA[<p>To get this working in Safari I needed to set the encoding of the enclosing form to &#8220;multipart/form-data&#8221;.  Below this line:<br />
var img_elem=Dom.get(&#8217;insertimage_url&#8217;);</p>
<p>I added:<br />
Dom.getAncestorByTagName(img_elem, &#8216;form&#8217;).encoding = &#8216;multipart/form-data&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-242</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 24 Dec 2007 04:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-242</guid>
		<description>Well, I found one comment, the one before the one you just made, that was erroneously marked as spam, but I didn't see another waiting moderation or marked as spam.  

Thanks for the input though.  The image processing is a little beyond the scope of what I wanted to handle here, but it is probably pertinent for anyone who wants to actually process an image on the server side with PHP.  Nice work.</description>
		<content:encoded><![CDATA[<p>Well, I found one comment, the one before the one you just made, that was erroneously marked as spam, but I didn&#8217;t see another waiting moderation or marked as spam.  </p>
<p>Thanks for the input though.  The image processing is a little beyond the scope of what I wanted to handle here, but it is probably pertinent for anyone who wants to actually process an image on the server side with PHP.  Nice work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-241</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Mon, 24 Dec 2007 04:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-241</guid>
		<description>Hi Dennis, hey i think you forgot to moderate my las post, theres some php code about headers that could Cyle. About the imagecreatefromjpeg function, as i said before, it belongs to the php GD library as well as all the other image manipulation functions i used on that script, and it must be compiled and enabled on your server php config. Maybe that's why it was dying while you was trying it. However, the php script on your example does the work fine.</description>
		<content:encoded><![CDATA[<p>Hi Dennis, hey i think you forgot to moderate my las post, theres some php code about headers that could Cyle. About the imagecreatefromjpeg function, as i said before, it belongs to the php GD library as well as all the other image manipulation functions i used on that script, and it must be compiled and enabled on your server php config. Maybe that&#8217;s why it was dying while you was trying it. However, the php script on your example does the work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RelaX</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-238</link>
		<dc:creator>RelaX</dc:creator>
		<pubDate>Sat, 22 Dec 2007 11:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-238</guid>
		<description>Hey again,

(i try to post this message, didn't work the first time)

Everything loads up perfectly, but after pushing "upload image", it doesn't do anything.

- I do the following...
www.website.com/scripts/yui_img_uploader.php
www.website.com/scripts/yui-image-uploader.js

so it's pointed to:

yuiImgUploader(myEditor, '/scripts/yui_img_uploader.php','image');

- SAVING IMAGES FOLDER
www.website.com/uploads/
(permissions set to 777):

full path on server:
/public_html/uploads/


- UPLOADSCRIPT:
$path = "uploads/";

and: 
$path = "/" . $path;

--

this doesn't work. I'm using php4 on linux. I tried all kinds of combinations to point to the uploadscript.</description>
		<content:encoded><![CDATA[<p>Hey again,</p>
<p>(i try to post this message, didn&#8217;t work the first time)</p>
<p>Everything loads up perfectly, but after pushing &#8220;upload image&#8221;, it doesn&#8217;t do anything.</p>
<p>- I do the following&#8230;<br />
<a href="http://www.website.com/scripts/yui_img_uploader.php" rel="nofollow">http://www.website.com/scripts/yui_img_uploader.php</a><br />
<a href="http://www.website.com/scripts/yui-image-uploader.js" rel="nofollow">http://www.website.com/scripts/yui-image-uploader.js</a></p>
<p>so it&#8217;s pointed to:</p>
<p>yuiImgUploader(myEditor, &#8216;/scripts/yui_img_uploader.php&#8217;,'image&#8217;);</p>
<p>- SAVING IMAGES FOLDER<br />
<a href="http://www.website.com/uploads/" rel="nofollow">http://www.website.com/uploads/</a><br />
(permissions set to 777):</p>
<p>full path on server:<br />
/public_html/uploads/</p>
<p>- UPLOADSCRIPT:<br />
$path = &#8220;uploads/&#8221;;</p>
<p>and:<br />
$path = &#8220;/&#8221; . $path;</p>
<p>&#8211;</p>
<p>this doesn&#8217;t work. I&#8217;m using php4 on linux. I tried all kinds of combinations to point to the uploadscript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-235</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 21 Dec 2007 21:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-235</guid>
		<description>I've finished my PHP example:
http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/</description>
		<content:encoded><![CDATA[<p>I&#8217;ve finished my PHP example:<br />
<a href="http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/" rel="nofollow">http://allmybrain.com/2007/12/21/an-example-rich-text-editor-image-upload-with-php/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RelaX</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-234</link>
		<dc:creator>RelaX</dc:creator>
		<pubDate>Fri, 21 Dec 2007 20:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-234</guid>
		<description>That'd be great! Thanks for helping me with this. I'm sure that many people will find this very useful.</description>
		<content:encoded><![CDATA[<p>That&#8217;d be great! Thanks for helping me with this. I&#8217;m sure that many people will find this very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-233</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 21 Dec 2007 19:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-233</guid>
		<description>After debugging a little, I found the the imagecreatefromjpeg function was dying.  I'm not sure why.  Perhaps someone else could expound on this.  

I cut everything out everything but the actual upload code and simply saved the file that was uploaded and it worked.  I'll be completing a working example in PHP sometime today I think.</description>
		<content:encoded><![CDATA[<p>After debugging a little, I found the the imagecreatefromjpeg function was dying.  I&#8217;m not sure why.  Perhaps someone else could expound on this.  </p>
<p>I cut everything out everything but the actual upload code and simply saved the file that was uploaded and it worked.  I&#8217;ll be completing a working example in PHP sometime today I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-232</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 21 Dec 2007 18:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-232</guid>
		<description>I'm actually playing around with it right now.  I don't know if there script has a bug or if there is something I'm missing.  I'll post back when I've figured it out.  Do let me know if you find the answer sooner.  I suggest turning up the error logging for php and starting there.</description>
		<content:encoded><![CDATA[<p>I&#8217;m actually playing around with it right now.  I don&#8217;t know if there script has a bug or if there is something I&#8217;m missing.  I&#8217;ll post back when I&#8217;ve figured it out.  Do let me know if you find the answer sooner.  I suggest turning up the error logging for php and starting there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RelaX</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-231</link>
		<dc:creator>RelaX</dc:creator>
		<pubDate>Fri, 21 Dec 2007 18:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-231</guid>
		<description>yes, I tried the file that was uploaded by one of the people from here: http://www.babybabybaby.com.mx/yui_image_uploader_php_working_script.txt

the image dir and uploadscript dir are set to "777". (linux server).

and this is the function that I use to call the upload script. 

(function() {
var oEditor = new YAHOO.widget.Editor('editor',
{
height: '300px',
width: '500px',
handleSubmit: true
});
yuiImgUploader(oEditor, '/~layouts/modules/scripts/yui/build/yuieditor/index.php','img');
oEditor.render();
})();

above is the relative path to the uploadscript. Everything is fully loaded, and I can browse to the image. After pressing "upload image", it does nothing.</description>
		<content:encoded><![CDATA[<p>yes, I tried the file that was uploaded by one of the people from here: <a href="http://www.babybabybaby.com.mx/yui_image_uploader_php_working_script.txt" rel="nofollow">http://www.babybabybaby.com.mx/yui_image_uploader_php_working_script.txt</a></p>
<p>the image dir and uploadscript dir are set to &#8220;777&#8243;. (linux server).</p>
<p>and this is the function that I use to call the upload script. </p>
<p>(function() {<br />
var oEditor = new YAHOO.widget.Editor(&#8217;editor&#8217;,<br />
{<br />
height: &#8216;300px&#8217;,<br />
width: &#8216;500px&#8217;,<br />
handleSubmit: true<br />
});<br />
yuiImgUploader(oEditor, &#8216;/~layouts/modules/scripts/yui/build/yuieditor/index.php&#8217;,'img&#8217;);<br />
oEditor.render();<br />
})();</p>
<p>above is the relative path to the uploadscript. Everything is fully loaded, and I can browse to the image. After pressing &#8220;upload image&#8221;, it does nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-230</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 21 Dec 2007 16:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-230</guid>
		<description>Is your "index.php" file the one that can accept the file for upload?  Is the path correct?  the 2nd parameter of the yuiImgUploader should be the relative path to a server side function that can accept the file (under the name given by the 3rd parameter).</description>
		<content:encoded><![CDATA[<p>Is your &#8220;index.php&#8221; file the one that can accept the file for upload?  Is the path correct?  the 2nd parameter of the yuiImgUploader should be the relative path to a server side function that can accept the file (under the name given by the 3rd parameter).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RelaX</title>
		<link>http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-228</link>
		<dc:creator>RelaX</dc:creator>
		<pubDate>Fri, 21 Dec 2007 14:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/#comment-228</guid>
		<description>Hi,

I've got a very simple question. 
How do I point to an upload script (index.php). 

yuiImgUploader(oEditor, '/scripts/yui/build/yuieditor/index.php','img');

it doesn't load the upload script at all. Or is it the wrong line?

Please help.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve got a very simple question.<br />
How do I point to an upload script (index.php). </p>
<p>yuiImgUploader(oEditor, &#8216;/scripts/yui/build/yuieditor/index.php&#8217;,'img&#8217;);</p>
<p>it doesn&#8217;t load the upload script at all. Or is it the wrong line?</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
