Skip to content
geoffwhittington edited this page Mar 5, 2015 · 13 revisions

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.

File storage providers

Local file storage

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.

Other Options