Skip to content

Document IMPORT_MAX_FILE_SIZE environment variable#766

Open
dstockton wants to merge 1 commit into
mainfrom
davidstockton/document-import-max-file-size
Open

Document IMPORT_MAX_FILE_SIZE environment variable#766
dstockton wants to merge 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant