Uploading Large Files to Alfresco using web services api or CMIS.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2013 02:52 AM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2013 07:27 PM
Look at WebDAV as a way to load large files into the system.
http://wiki.alfresco.com/wiki/Client_WebDAV
http://wiki.alfresco.com/wiki/Client_WebDAV
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2013 12:03 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2013 12:44 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2013 05:22 AM
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.
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.
