-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Files
To configure which file storage provider is used, modify the files.provider
property. Only one provider can be enabled (unlike authentication providers).
files:
enable: true
provider: local
maxFileSize: 100000000
restrictTypes: true
allowedTypes:
- 'image/jpeg'
- 'image/png'
- 'image/gif'
File types are restricted by default. An admin must list all supported types using the files.allowedTypes
setting similar to above. You can allow all file types by setting files.restrictTypes
to false
.
NOTE: File type restriction is NOT a security control. This feature is for convenience only and to help reduce noise. For example, a bad user can upload evil.exe
to the server if it is renamed friendly.png
and files.allowedTypes
contains the mime type image/png
.
files:
local:
dir: uploads
SECURITY: Run on-going file and virus detection on your Lets Chat server to identify and quarantine malicious or unwanted uploaded files.