cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading Large Files to Alfresco using web services api or CMIS.

narithota
Champ in-the-making
Champ in-the-making
Hi Team,

I have a requirement to upload the large files(say 2GB) to the alfresco. Presently we are uploading the files upto 50mb by using web services as well as CMIS API. So my question are ;
1) Is there any other option to upload the large files?
2) can we do this asynchronously?
3) can we do this by dividing the files in to chunks?


Thanks
narithota
4 REPLIES 4

ungawunga
Champ in-the-making
Champ in-the-making
Look at WebDAV as a way to load large files into the system.
http://wiki.alfresco.com/wiki/Client_WebDAV

mitpatoliya
Star Collaborator
Star Collaborator
There are various problems you will face if you try to upload the larger files though the webscript.
Some of them are

Heap Size issue (Need to increase that)
JVM memory allocation
session time out (It will take more time to write the data on created content so need to make sure session timeout does not happens)
I am sure you must have faced some of this issues.

Hi mitpatoliya,

I faced JVM memory allocation and session time out problems. So I am searching for are there any other ways that we can upload the files asynchronously or dividing the files in to chunks and send it to a queue. But, I think asynchronous way wont work because it may get JVM memory issue. Can we divide the file into chunks and upload? Is Alfresco supports this?

So are there any alternatives, please help me.

Thanks
narithota

mitpatoliya
Star Collaborator
Star Collaborator
AFAIK there is no such provision in Alfresco which allows you to upload file in chunks.
What I think is if we want to achieve that we need to do some tricks in our code only.
We can create some temporary files which holds pieces of content.
Then once content is created in alfresco we can get the contentWriter of that created content and write the data one by one.
to be honest I have not done this but this is just guideline.
Actually I have also implemented the same and we have to restrict the user from uploading bigger files.