Method Upload
Upload(Stream, string)
Uploads a GridFS file.
public MongoGridFSFileInfo Upload(Stream stream, string remoteFileName)
Parameters
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.
Upload(Stream, string, MongoGridFSCreateOptions)
Uploads a GridFS file.
public MongoGridFSFileInfo Upload(Stream stream, string remoteFileName, MongoGridFSCreateOptions createOptions)
Parameters
stream
StreamThe source stream.
remoteFileName
stringThe remote file name.
createOptions
MongoGridFSCreateOptionsThe create options.
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.
Upload(string)
Uploads a GridFS file.
public MongoGridFSFileInfo Upload(string fileName)
Parameters
fileName
stringThe file name (same local and remote names).
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.
Upload(string, string)
Uploads a GridFS file.
public MongoGridFSFileInfo Upload(string localFileName, string remoteFileName)
Parameters
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.