Published: August 24, 2026
Last updated: October 29, 2026

Storage quotas (v2.1.0+) let you cap how much data can be stored in a specific place. When a cap applies, uploads that would exceed it are blocked and the UI shows how much space is used.

Three kinds of quotas

FileBrowser can enforce limits at three levels. All applicable limits must pass before an upload is accepted.

KindWho sets itWhat it limitsTypical use
Folder quotaAdminSize of a specific folder (and everything inside it)Cap a team project directory or customer upload area
Scope quotaAdmin (per user, per source)Storage for a user’s assignment on one sourcePersonal home folder on a shared server (#547)
Share quotaShare ownerFiles uploaded through a share linkPublic upload link with a fixed cap

The three kinds are independent: you configure each where it applies in the UI, and FileBrowser stores them separately. A limit you set on a user is not the same record as a limit on a folder, even though both can show up in admin views.

Folder quota

Admins set a limit on a single folder from the file browser:

  1. Select one folder (not a file).
  2. Open the context menu → Storage quota.
  3. Turn on the limit, choose a measurement style (when indexing is enabled), pick a preset (for example 10 GB), or enter a custom size.

You can optionally bind a folder quota to one user so the cap applies only to them on that path; other users on the same folder are unaffected.

Scope quota

In Settings → User management, expand a user’s source block to set a storage limit for this source:

  • Indexed size — Total size of indexed files in the user’s scope folder on that source (what you see in the sidebar usage bar).
  • Tracked usage — Counts only uploads, saves, and deletes performed through FileBrowser.

When a scope quota uses indexed size, the sidebar shows your usage vs your cap for that source instead of whole-disk partition usage (#2029).

Scope limits are saved with the user account (per source), not with folder quota settings. Both can be active at once—they are configured in different places in the admin UI.

Share quota

On upload shares or normal shares with allow create, you can limit storage through the link:

  • Set Limit storage through this share in the share dialog (same area as download limits).
  • Visitors see used vs limit before uploading when a cap is set.
  • Public uploads through the link also count against the share owner’s scope quota on that source, if one exists.

Share quotas always use tracked usage (mutation counter). There is no indexed-size option for shares.

See Share options and Upload shares.

Share limits are saved with the share link, alongside other share options (password, expiry, download limits).

Confirming a limit is saved

You do not need to open or edit the SQLite database to verify quotas. Use the same screens where you set the limit, plus normal upload behavior.

KindCheck in the UIPersistence check
ScopeSettings → User management → open the user → expand the source block. The storage limit toggle, measurement style, and cap should match what you saved.Refresh the page or sign out and back in, then open the same user again. After a server restart, the values should still be there. The affected user sees used / limit on that source in the sidebar when a cap applies.
FolderSelect the folder → context menu → Storage quota (or open Info on the folder if your build shows quota there). The limit and style should match what you saved.Same as above: refresh or restart, then open Storage quota on that folder again.
ShareEdit the share (or Settings → Shares for upload links). Limit storage through this share and any usage summary should match what you expect.Refresh or restart, then open the share settings again. On an upload share with a cap, visitors see used vs limit before uploading.

Behavior check: Upload a small file within the cap—it should succeed. Upload (or save) something that would exceed the cap—the UI should block the action and show a storage-quota message. That confirms enforcement is wired to the limit you configured.

Different screens, different limits: A cap shown under User management is a scope quota. It will not appear under Storage quota on a folder, and the other way around. That is normal—not a sign that a limit was “lost.”

To change or remove a limit, use the same UI where you created it (toggle off, or clear the cap, then save).

Where each kind is configured

KindWhere you set it
FolderContext menu → Storage quota on a folder
ScopeSettings → User management → source block for that user
ShareShare create/edit dialog → Limit storage through this share

Tracked usage styles maintain a separate usage tally from the limit number you typed in. Seeing usage update in the UI while you only set user or share limits—not folder limits—is expected.

Choosing a measurement style

Folder and scope quotas support two measurement styles when indexing is enabled on the source. You choose the style per quota in the admin UI under Count usage by.

When indexing is disabled on a source (viewable on the root conditional rule, or equivalent rules that disable indexing), only tracked usage is available. The UI hides indexed-size options.

Indexed size

Uses folder size totals from the search index at the quota root (folder quotas) or the user’s scope path (scope quotas). See Indexing.

StrengthsLimitations
Reflects actual tree size under the quota root (indexed files)Requires indexing enabled and a successful folder size at the root
Good for caps on existing data (projects, shared folders)Slow to reflect new uploads until the indexer updates folder sizes
Matches sidebar / listing folder sizes users already seeOut-of-band changes (rsync, shell copies) count once the index catches up — not instant
No counter drift from FileBrowser-only semanticsIf indexed size is configured but size is temporarily missing, enforcement falls back to tracked usage until size is known
Indexed totals decrease after delete when the indexer refreshes folder sizesSlow to reflect deletes until the indexer updates folder sizes

Tracked usage (mutation counter)

Counts bytes when FileBrowser-mediated writes are committed (uploads, editor saves, deletes, and similar actions). Same model as share quotas.

StrengthsLimitations
Works without indexing — only option when indexing is disabledCounts FileBrowser-mediated changes only, not full disk usage
Immediate reserve/commit on each write — no scan delayStarts at 0 when enabled; does not include files already on disk unless you seed (future UX)
Same model as share quotas — predictable for upload linksDrifts if files are added/removed outside FileBrowser (SFTP, rsync, shell)
Deletes credit accounted usage on API, bulk, share, and WebDAV delete; nested folder quotas reset when an ancestor directory is removedNot a substitute for filesystem disk quota — logical cap through the app
Admin can choose this even when indexing works (e.g. upload budget only)Persisted in the database (batched flush)

Which should I use?

  • Cap total folder contents (existing files + uploads) → Indexed size when indexing is on.
  • Cap changes through FileBrowser, or indexing is off → Tracked usage.
  • Share links → always tracked usage.

Runtime fallback

If you configure indexed size but the index has not measured that folder yet, enforcement temporarily uses tracked usage so uploads are not blocked and usage is not treated as zero. The UI may show that fallback until folder size is available. When the index catches up, reported usage may jump to match the indexed total.

Changing a quota from indexed size → tracked usage does not auto-seed the counter from disk; usage starts from FileBrowser writes after the change.

What users see

UserQuota UI
EveryoneNo quota UI until a limit exists for something they use
Non-admin with scope quotaSidebar progress bar on that source (used / limit)
AdminFolder quota in context menu; scope quotas in user edit; share quotas in share dialog; usage in Settings → Shares for upload links
Share visitorsOptional usage bar on upload shares with a storage cap

There is no global “enable quotas” switch. Each limit is configured where it applies.

Uploads and errors

When any quota applies to the destination:

  • The client must send a known total file size before the upload body is accepted (Content-Length or X-File-Total-Size for chunked uploads). Otherwise the request is rejected with a clear error.
  • If the file would exceed the limit, the server responds with 507 Insufficient Storage and a quota_* error code so the UI can show a specific message.

Deletes are not blocked by quotas. Replacing a file only charges the difference in size (new size minus old file size). For tracked usage (accounted) quotas, successful deletes through the API (including bulk delete), share delete endpoints, and WebDAV reduce the counter by the removed bytes; deleting a directory resets accounted folder quotas rooted inside that tree to zero.

Folder sizes and indexing behavior depend on source settings such as useLogicalSize — see Sources.

Upgrades and migration

Quota limits and usage counters live in the SQLite database. Upgrading from an older schema adds the needed structures automatically on first startup.

If you migrate from a legacy Bolt database to SQLite, users, shares, and access rules are imported as today, but no quota limits are migrated (Bolt never stored them). Configure folder, scope, and share quotas again after migration—the same way as on a new install.

Optional tuning for how often tracked usage is written to disk lives under server.database.quotas — see Server settings.