cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for example of UploadContentServlet

singhr
Champ in-the-making
Champ in-the-making
Hi,

Can anyone provide an example of UploadContentServlet.

Currently, I created a zip file(containing no. of files in subdirectories) and uploaded it using Repository Web Service
             …. some code…..
            CML cml = new CML();
            cml.setCreate(new CMLCreate[]{create});
            UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);

But it doesnot get exploded (as it happens when we import/upload a zip via Web UI).
Is there any way to instruct Alfresco to extract content from the uploaded zip file?
Another concern is there should not be any limitation of content size to be uploaded.
2 REPLIES 2

dhalupa
Champ on-the-rise
Champ on-the-rise
Hi,
example can be found in alfresco source. Take a look at svn, web-client project, org.alfresco.web.app.servlet.UploadContentServlet

Kind regards,

Denis

singhr
Champ in-the-making
Champ in-the-making
Dear dhalupa,
Thanks a lot for your time to respond.
But I am looking for some working example not the source code for the servlet.