Author: api.jfisher
Date: Wed Dec 12 17:44:48 2007
New Revision: 356

Modified:
   trunk/clients/cs/src/gdocuments/documentservice.cs

Log:
Fixed a small bug where a file could not be uploaded that was opened by 
another process.

Modified: trunk/clients/cs/src/gdocuments/documentservice.cs
==============================================================================
--- trunk/clients/cs/src/gdocuments/documentservice.cs  (original)
+++ trunk/clients/cs/src/gdocuments/documentservice.cs  Wed Dec 12 
17:44:48 2007
@@ -105,7 +105,7 @@
         {

             FileInfo fileInfo = new FileInfo(fileName);
-            FileStream stream = fileInfo.OpenRead();
+            FileStream stream = fileInfo.Open(FileMode.Open, 
FileAccess.Read, FileShare.ReadWrite);
             Uri postUri = new Uri(DocumentsListQuery.documentsBaseUri);

             if (documentName == null)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to