Media gallery
uploads/ is scratch space — the queue deletes a message’s media once it is delivered. gallery/ is media you chose to keep, quota-bounded and outside uploads/ precisely so no send-path cleanup can reach it.
Sending a gallery item copies the file into uploads/ and queues the copy, so the existing delete-after-send behaviour stays correct without a special “don’t delete this one” flag.
- Default gallery quota on a fresh install:
GALLERY_MAX_MB= 2048 MB; an administrator may raise it up toGALLERY_MAX_LIMIT_MB= 51200 MB from Settings. - Uploads are checked against their actual leading bytes, not the type the client declared.
- The gallery is part of the application’s own backup archive, and of the
statevolume — back it up with MongoDB (see Backups & recovery).