Roller does not support picture upload as part of creating/editing blog entries. These are two separate steps: first, you upload pictures (or any other file for that matter) and then you create/edit entries to add <img> tag, for example, that references uploaded resource. The action that handles file upload does understand multipart content but it will not touch weblog entries. Likewise, the action that handles posts does not understand multipart requests. Bottom line: you have to write code :)

Max

On Mar 29, 2006, at 4:59 PM, Tribley William-cwt010 wrote:

Hi Max,
What would happen if I just fed the multipart to Roller as the edited
content? Would it be able to separate the parts and store the
non-text/html parts in the upload directory without any new code? If
not, I will write a servlet based on your thoughts below.
Thanks,
Bill

-----Original Message-----
From: Max Rudman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 3:55 PM
To: [email protected]
Subject: Re: Handling JavaScript Editor File Uploads

   stuff removed

Look in org.roller.xmlrpc for example on creating entry from
request params. Look in UploadFileFormAction and/or
FileManagerImpl for example of how file uploads are handled.
Roller uses commons- fileupload library to parse multipart
form data which is what you should use as well.

Hope this helps,

Max

Reply via email to