1.20.x file.inc | file_default_scheme() |
Gets the default file stream implementation.
Return value
'public', 'private' or any other file scheme defined as the default.:
Related topics
File
- includes/
file.inc, line 255 - API for handling file uploads and server file management.
Code
function file_default_scheme() {
try {
$scheme = config_get('system.core', 'file_default_scheme');
}
catch (ConfigException $e) {
}
if (empty($scheme)) {
$scheme = 'public';
}
return $scheme;
}