[CSHARP-287] When creating a new GridFS file using the Stream API you can't set the _id for the file Created: 26/Jul/11  Updated: 02/Apr/15  Resolved: 26/Jul/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2

Type: Bug Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

The private method MongoGridFSFileStream.OpenCreate throws an exception when fileInfo.Id already has a value. Instead it should just use the value provided.



 Comments   
Comment by Robert Stam [ 26/Jul/11 ]

MongoGridFSStream.OpenCreate now uses the fileInfo.Id if it is provided instead of throwing an exception.

Generated at Wed Feb 07 21:36:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.