// UploadFromStream creates a fileID and uploads a file given a source stream.
//
// If this upload requires a custom write deadline to be set on the bucket, it cannot be done concurrently with other
// write operations operations on this bucket that also require a custom deadline.
UploadFromStream creates a fileID and uploads a file given a source stream.

If this upload requires a custom write deadline to be set on the bucket, it cannot be done concurrently with other
write operations operations on this bucket that also require a custom deadline.
// UploadFromStream creates a fileID and uploads a file given a source stream . // // If this upload requires a custom write deadline to be set on the bucket it cannot be done concurrently with other // write operations operations on this bucket that also require a custom deadline .
func (b *Bucket) UploadFromStream(filename string, source io.Reader, opts ...*options.UploadOptions) (primitive.ObjectID, error) {
	fileID := primitive.NewObjectID()
	err := b.UploadFromStreamWithID(fileID, filename, source, opts...)
	return fileID, err
}
func ( b * Bucket ) UploadFromStream ( filename string , source io . Reader , opts ... * options . UploadOptions ) ( primitive . ObjectID , error ) { fileID := primitive . NewObjectID ( ) err := b . UploadFromStreamWithID ( fileID , filename , source , opts ... ) return fileID , err }
UploadFromStream creates a fileID and uploads a file given a source stream.
UploadFromStream creates a fileID and uploads a file given a source stream .