Select the product you need help with
SharePoint 2010: HowTo upload a file of the size of 1 GB using client object modelArticle ID: 2529243 - View products that this article applies to. SymptomsWhen you use SharePoint Client OM to upload files to SharePoint 2010 Document Library, uploading of files larger than 3 MB fail with the following error: The remote server returned an error: (400) Bad Request. Stack trace: Sample program used to upload file using SharePoint 2010 Client OM: ClientContext clientContext = new ClientContext("http://server:10000/sites/testSite"); How to upload files with larger size, for example up to 1 GB or more, using Client Object Model in SharePoint 2010. CauseThe default internal restrictions on file sizes and timeout settings halt uploading of larger files using Client Object Model in SharePoint. ResolutionMore InformationAt times you may see that the upload operation returns a timeout exception but this is critical only for very large file sizes which are close to 2 GB. Otherwise, it can be ignored using a try-catch block and you should see that the file got uploaded successfully. Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.PropertiesArticle ID: 2529243 - Last Review: April 1, 2011 - Revision: 3.0
|


Back to the top








