Skip to content

Commit

Permalink
Add tip about adding custom extensions to extraAllowedFileExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 27, 2019
1 parent d848643 commit ee1aadd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/config/config-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,11 @@ will get merged with the one defined in `\craft\config\craft\helpers\Assets::_bu
],
```

::: tip
File extensions listed here won’t immediately be allowed to be uploaded. You will also need to list them with
the [$extraAllowedFileExtensions](https://docs.craftcms.com/api/v3/craft-config-generalconfig.html#property-extraallowedfileextensions) config setting.
:::



### `filenameWordSeparator`
Expand Down
5 changes: 5 additions & 0 deletions src/config/GeneralConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ class GeneralConfig extends BaseObject
* ],
* ],
* ```
*
* ::: tip
* File extensions listed here won’t immediately be allowed to be uploaded. You will also need to list them with
* the [[$extraAllowedFileExtensions]] config setting.
* :::
*/
public $extraFileKinds = [];
/**
Expand Down

0 comments on commit ee1aadd

Please sign in to comment.