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 reliable security control! It is there for convenience and to help reduce some noise. If a user really wanted they could upload evil.exe with the name friendly.pdf.

PRO TIP: Run on-going file and virus detection on your Lets Chat server to identify and quarantine malicious or unwanted files.

File storage providers

Local file storage

files:
  local:
    dir: uploads

Other Options