cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading huge file in chunks, can I append stream?

sriramb
Champ in-the-making
Champ in-the-making

Hi,

I have a requirement to upload huge files to alfresco via cmis api and due to limitation from the calling application, I'm having to split the source file into multiple chunks. Is there a way I can append the content stream of subsequent chunks to the first stream uploaded?

Thanks

Sri

2 REPLIES 2

4535992
Star Collaborator
Star Collaborator

Alfresco's CMIS interface has a default maximum upload size of 4GB, you can remove this limitation by adding the following alfresco-global.properties (or docker-compose if you use the docker solution) line as described in the documentation (is not very clear...):

opencmis.maxContentSizeMB=4096 // Instead 4096 put for example 8192 for 8GB

sriramb
Champ in-the-making
Champ in-the-making

Hi, the limitation is not from alfresco end but the invoking application. So I had to split the uploaded file into chunks and use appendcontentstream. While it works, the size of the appended file seems bigger than the original. Any insights as to why this might happen?