Skip to content
  1. Extras
  2. modSizeControl
  3. Component settings

Component settings ​

MODX namespace: modsizecontrol, area Main. The System Settings button on the component page opens exactly this area.

KeyDefaultDescription
modsizecontrol_site_limit0The site size limit in megabytes, e.g. 1024 is 1 GB. 0 means no limit: the widget compares the site with the server disk
modsizecontrol_file_system1File source IDs separated by commas. A source inside another one from the list is counted once
modsizecontrol_controlNoUpload control: a file that does not fit into the limit is not uploaded

File sources ​

The site root is always scanned, so sources inside it add nothing to the size. The setting matters when a source points outside the site, e.g. at a shared uploads directory: such a directory is scanned separately and goes to the Media category.