Mercurial > libervia-backend
diff sat/core/constants.py @ 3223:163014f09bf4
plugin attach: handle large images resizing:
if `C.MESS_KEY_ATTACHMENTS_RESIZE` flag is set for an attachment, it will be checked, and
if it is a large image, a resized copy will be uploaded.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 22 Mar 2020 14:04:16 +0100 |
parents | 439e2f88c3a9 |
children | 6cf4bd6972c2 |
line wrap: on
line diff
--- a/sat/core/constants.py Sun Mar 22 14:01:47 2020 +0100 +++ b/sat/core/constants.py Sun Mar 22 14:04:16 2020 +0100 @@ -136,6 +136,7 @@ MESS_KEY_ATTACHMENTS = "attachments" MESS_KEY_ATTACHMENTS_MEDIA_TYPE = "media_type" MESS_KEY_ATTACHMENTS_PREVIEW = "preview" + MESS_KEY_ATTACHMENTS_RESIZE = "resize" # File encryption algorithms ENC_AES_GCM = "AES-GCM"