Function __global->get_max_file_size
Definitions
sources/files2.php
- Get the maximum allowed upload filesize, as specified in the configuration.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: int
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$source_member | ?MEMBER | Null | N/A | N/A | Member we consider quota for (null: do not consider quota because we are not dealing with attachments) |
$db | ?object | Null | N/A | N/A | Database connector to get quota from (null: site DB) |
$consider_php_limits | boolean | True | N/A | N/A | Whether to consider limitations in PHP's configuration |
Return
- The maximum allowed upload filesize, in bytes
- Type: integer
- Set: N/A
- Range: N/A