document.getFile() should give you the file wrapped in the document.
HTH,
Jan
On Jul 6, 2010, at 9:14 AM, Rana Singh wrote:

> Dear all,
> 
> I'm making a simple postback from a jsp-page and have a form of type 
> enctype="multipart/form-data" with field "<input type="file" 
> name="attachment1" />". 
> I have a contentbean/rendermodel on the serverside where I want to process my 
> posted data.
> I am able to process all form-data (textarea, radiobutton etc) except the 
> files. When I inspect the "MgnlContext.getWebContext().getRequest()" on the 
> serverside I can see the files as "Documents". But I am not able to assign 
> the file to my attachment-variable.
> 
> private File attachment;
> ........
> public void setAttachment(File attachment) {
>        this.attachment = attachment;
> }
> 
> 
> There is unfortunately hard to find good documentation on this (although the 
> question is simple enough). I've searched the wiki and google, but no luck.
> 
> Thanks in advance for any help.
> 
> -- 
> -- 
> Rana Ranjit Singh
> Solutions Engineer | +47 413 50 220
> Iterate AS | www.iterate.no
> The Lean Software Development Consultancy



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to