Skip to content

Document IMPORT_MAX_FILE_SIZE environment variable - #766

Merged
ComfortablyCoding merged 1 commit into
mainfrom
davidstockton/document-import-max-file-size
Jul 29, 2026
Merged

ComfortablyCoding merged 1 commit into
mainfrom
davidstockton/document-import-max-file-size

Conversation

@dstockton

Copy link
Copy Markdown
Contributor

What

Documents the new IMPORT_MAX_FILE_SIZE environment variable in the Limits & Optimizations table on the Security & Limits configuration page.

It caps the size of a file uploaded to the import endpoint (POST /utils/import/:collection), returning 413 Content Too Large when exceeded. Unset (no limit) by default, and separate from FILES_MAX_UPLOAD_SIZE.

Why

The variable is introduced in the code PR below. Background imports are now spooled to disk before processing, so without a cap an unbounded upload could fill the disk. This documents the new knob operators can use to bound it.

References

Added in directus/directus#27862 to cap the size of uploaded import
files (background imports are spooled to disk, so an unbounded upload
could fill it).

Linear: CMS-2802

Claude-Session: https://claude.ai/code/session_01CYVPLXSETtvKBzWtwY6EbS
@dstockton
dstockton requested a review from a team as a code owner July 8, 2026 20:52
@vercel

vercel Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 8, 2026 8:56pm

Request Review

@ComfortablyCoding
ComfortablyCoding merged commit b48a6f4 into main Jul 29, 2026
5 checks passed
@ComfortablyCoding
ComfortablyCoding deleted the davidstockton/document-import-max-file-size branch July 29, 2026 19:51

This branch was successfully deployed

1 active deployment
Preview — 4c9c67d5 Deployed Jul 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants