How to upload image thro action handler

Author Message

Dhaval Patel

Monday 01 September 2008 10:36:37 pm

hello all dear masters,

I have created an action handler to update the user profile.

I succeed in updating the other user attributes.

Now the problem is that how to upload and replace the user thumbnail with the new one.

so please suggest me what to write in action handler to upload an image and change the attribute.

Thanking all of you,

Dhaval Patel

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
[email protected]
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Maxime Thomas

Wednesday 03 December 2008 11:06:28 pm

Hello,

You can check the Image Alias Handler file located in kernel/classes/datatype/ezimage as far as I can remember...
There is two functions :
- the first to create a new handler, you put your new file as a parameter
- the second one let you create all the "thumbnails" (image alias) as defined in image.ini.

Hope it helps.

Max

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.