FileStorage
FileStorage
Section titled “FileStorage”Configures file storage limits.
This object can be configured from the WebUI under Settings › Files & Sharing › File Storage
Fields
Section titled “Fields”maxSize
Section titled “maxSize”Type:
Size· default:"25mb"Specifies the maximum size of a file that can be uploaded to the server
maxFiles
Section titled “maxFiles”Type:
UnsignedInt?· min: 1The default maximum number of files a user can create
maxFolders
Section titled “maxFolders”Type:
UnsignedInt?· min: 1The default maximum number of file folders a user can create
JMAP API
Section titled “JMAP API”The FileStorage singleton is available via the urn:stalwart:jmap capability.
x:FileStorage/get
Section titled “x:FileStorage/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
For singletons, the ids argument should be the literal singleton (or null to return the single instance).
This method requires the sysFileStorageGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:FileStorage/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:FileStorage/set
Section titled “x:FileStorage/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.
This method requires the sysFileStorageUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:FileStorage/set", { "update": { "singleton": { "maxSize": "25mb" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get FileStorageUpdate
Section titled “Update”stalwart-cli update FileStorage --field maxSize=25mb