I am trying with CWS but i am failing with different error message. Few error message says Socket connection was aborted etc.
Requirement is to upload more than 1 GB
Please do advise.
When you are uploading large files using CWS, you need make sure you set the appropriate size limits in the config files.
if you are using .Net client, you need to set the limits in the web.config for ContentService binding.
Also you need to set the limits (example for 2GB file: <httpRuntime maxRequestLength="2097151" /> ) in the web.config located in <OTInstall>\webservices\dotnet\les-services folder.
You also need to consider increasing the IIS timeout setting.
This post also might help.
Hope that helps...
Mahesh
Thanks.
I was able to upload <2 GB but can't upload more than that.
Any suggestion on that.
Thanks
John
Hi John,
The maximum size that you can configure and set in ASP.Net is 2097151KB = 2GB . This is a limit that has been in place right from the first version of .Net and still persists through .Net 4.
If you need to upload files larger than 2GB , you must implement resumeable upload interfaces and upload files with segments or chunks.
You may think of using Object Importer as one alternative.
Thanks,
Pramod Mohandas
Fisrt the answer will differ depending teh IIS version 6.0,7.0, 7.5. You have to consider two variable: In the sytem.web you have the http runtime node with maxRequestLength (in kb). In the system.webServer you have the requestLimits with maxAllowedContentLength (in byte). The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files. Keep in mind Content server is either a CGI or ISAPI application while the CWS is a .net application. They will behave differently. In my organization, we are able to upload file larger then 2GB in content server but not thru CWS. why? Because CWS is affected by both: maxAllowedContentLength and maxRequestLength. there is a couple article about those two: http://stackoverflow.com/questions/6327452/which-gets-priority-maxrequestlength-or-maxallowedcontentlength
http://blogs.msdn.com/b/friis/archive/2013/06/19/uploading-large-file-to-iis-7-5-or-8-using-file-input-element.aspx
https://support.dovetailsoftware.com/selfservice/solutions/show/555
According to MSDN maxAllowedContentLength has type uint, its maximum value is 4,294,967,295 bytes = 3,99 gb : http://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7
maxAllowedContentLength
uint
You might consider using the Enterprise Library API with HTTP Data Transfer Service. It’s a streaming interface with unlimited file size (content-length as a 64-bit long value).
Andreas
From: eLink Entry: Content Web Services Forum [mailto:otdncontentwebservices971forum@elinkkc.opentext.com]Sent: Mittwoch, 7. Mai 2014 08:27To: eLink RecipientSubject: Any advise on best way to upload more than 1 GB to CS
Any advise on best way to upload more than 1 GB to CS
Posted byjohn.thomas@cognizant.com (Thomas, John) On 05/07/2014 01:58 AM