$fileStreamProtocol public property (available since version 2.1)
Name of the protocol, which should be used for the GridFS stream wrapper. Only alphanumeric values are allowed: do not use any URL special characters, such as '/', '&', ':' etc. See also yii\mongodb\file\StreamWrapper.
public string $fileStreamProtocol = 'gridfs'