[opencms-dev] multipart uploads

Daniel daoquan at gmail.com
Tue Feb 7 04:11:32 CET 2012


Files uploading is automatically processed
in org.opencms.workplace.CmsWorkplace.You should extend from CmsWorkplace
to process the upload files.


2012/2/5 Marko Riedel <markoriedelde at yahoo.de>

> Hello there,
>
> I would like to add multipart uploads to an OpenCMS
> website that I maintain. I found the following code on the internet, but
>  it does not work:
> <%
> com.opencms.file.CmsObject cms =
> ((com.opencms.flex.cache.CmsFlexRequest)request).getCmsObject();
> Enumeration files = cms.getRequestContext().getRequest().getFileNames();
> while(files.hasMoreElements()) { String filename =
> (String)files.nextElement(); byte[] filecontent =
> cms.getRequestContext().getRequest().getFile(filename); // do somthing
> with filename / filecontents here ...
> }
> %>
>
> Also, I could not figure out how to create a CmsRequestHttpServlet.
>
> Thanks!
>
> Marko Riedel
>
>
> +---------------------------------------------------+
> | Marko Riedel, markoriedelde at yahoo.de              |
> | http://www.mathematik.uni-stuttgart.de/~riedelmo/ |
> +---------------------------------------------------+
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120207/f39fb907/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: workflow.png
Type: image/png
Size: 12291 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120207/f39fb907/attachment.png>


More information about the opencms-dev mailing list