Hi Giancarlo

You're talking about uploading the Document from the paragraph template, right?
Isn't  it possible to upload the file directly from a paragraph's dialog to a 
location in the DMS?

Our users are accustomed to use the Dialogs to edit paragraphs in the CMS, and 
I would prefer not to break with this tradition.

Thanks
Claudio



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. April 2008 17:57
An: [email protected]
Betreff: Re: [magnolia-user] Creating a CMS dialog to Upload a file to the DMS

Hi Claudio

Yes, it is in fact quite easy to upload a document to the DMS, thanks
to "RequestFormUtil" class.

Your form in the paragraphs script needs to be a "multipart-form" (so
enctype="multipart/form-data" in the form tag).
In your JSP/Servlet you can use the RequestFormUtil class to get the
uploaded document.

To upload to DMS you need the HierarchyManager on the "dms"
repository, then you can create nodes and add the document.

Cheers
/giancarlo
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to