Storage quotas

How the per-user space limit works in Arquivme, the global default and how to set individual exceptions.

How the limit is calculated

Each user has an effective storage limit calculated as follows:

  1. If the account has an individual limit set (a specific field when editing the user), that value is used.
  2. Otherwise, the system default limit applies, set by the environment variable MAX_STORAGE_MB_PER_USER (in megabytes). The factory value is 0, which means no limit — in other words, if you don't configure anything, no account has a quota.

This behavior allows two usage models: leave everything unlimited (simpler, but you have to monitor disk usage manually) or set a reasonable default and open specific exceptions for accounts that need more space.

Setting the system default limit

In the backend .env file, set:

MAX_STORAGE_MB_PER_USER=5000

(in the example above, 5000 MB = ~5 GB per user, by default). This value applies to every account that has no individual limit set.

Setting an individual limit

On the user edit screen (Administration > Users), the storage limit field accepts three states:

  • Empty / not set: the account follows the global default (MAX_STORAGE_MB_PER_USER).
  • A number in MB: sets a specific limit for that account, ignoring the global default — it can be higher or lower than the default.
  • Zero: no limit, even if the global default has a value — useful for a full exception for a specific account (for example, your own, or that of someone who centralizes a lot of content).

What happens when the limit is reached

When someone tries to upload (or receive a file through someone's inbox) and it would exceed the limit, Arquivme refuses the operation before it starts writing the file, with a clear "not enough space" message. The user doesn't waste time waiting for an upload that will fail, and the system is never left in a "half-written" state.

Items in the trash still count toward used space — guiding the user to empty the trash is the first solution when someone complains about running out of space.

Monitoring usage

Each user sees their own usage and limit under Profile. As an administrator, you can check the system's total disk usage in Server status.

Last updated: November 29, 2026