Article ID: 2529243 - Last Review: April 1, 2011 - Revision: 3.0 SharePoint 2010: HowTo upload a file of the size of 1 GB using client object model
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. | Other Resources Other Support Sites
CommunityGet Help Now
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
