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


On Apr 23, 2008, at 8:07 AM, claudio.greuter wrote:

Hi List

I plan to use the DMS for file storage. To increase usability for our users, I'd like to integrate the DMS in the CMS, for instance by allowing them to upload a file directly to the DMS when editing a CMS paragraph.

Example: I have an existing paragraph that allows uploading a file to the CMS. Currently the file paragraph stores the file binary in the website repository. Is it possible to use the DMS as a storage location by adding a different control to the dialog? Or would one have to extend the dialogs?

(I tried to add the "document" property from the DMS dialog to by File download Dialog, but I received an Nullpointer)

Claudio

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



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

Reply via email to