public uploadFromStream ( string $filename, resource $source, array $options = [] ) : MongoDB\BSON\ObjectId | ||
$filename | string | Filename |
$source | resource | Readable stream |
$options | array | Stream options |
return | MongoDB\BSON\ObjectId | ID of the newly created GridFS file |