The YUI team has been making further enhancements to the YUI library. I decided to stick together in one post all the previous resources I’ve added for the YUI Image Uploader and make sure the uploader was compatible with the latest version of the YUI Rich Text Editor.


Image Uploader Client Code

To use upload images into the YIU Rich text editor, you have to add an additional javascript dependency to the list of JavaScript files for the editor. Here is the link for the the dependency and instructions on using the image uploader extension:

YIU Rich Text Editor Image Upload Extension.

Image Uploader Server Code

To upload images, you’ll need to provide some server functionality. The image needs to be stored on a server and made available for the web browser to display and the client to further manipulate. You can do this an about any programming language or server environment but the method will be unique to your particular language. I’ve provided examples for two languages:

YUI Image Uploader with Python/Turbogears
YUI Image Uploader with PHP

YUI Rich Text Editor 2.5.0 Example

Here is an example that uses the 2.5.0 YUI library and the PHP server code:


I did a quick test and was able to upload images in both Safari and FireFox. Enjoy!