Skip to content

Configuration

Mayeenul Islam edited this page Mar 10, 2019 · 2 revisions

Change configuration in config/shongjukti.php.

Maximum Upload Size:

Set the maximum upload size (per file), under 'upload_max_size'.

Accepts: integer in bytes
default: 5000000 - 5mb in bytes

Default Extensions:

Set the default accepted extensions, if per-attachment accepted extensions are not set, under 'default_extensions'.

Accepts: string of comma-separated extensions (with or without dots)
default: 'jpg, gif, png, pdf'

Attachment Scopes:

Set the maximum upload size (per file), under 'attachment_scopes'.
Known issue: Config file cannot take translatable strings. :(

Accepts: array of Scopes in key-value pair
default: ['demo-application' => 'Demo Application']