toeverything/AFFiNE · error · WebImportLimitError
This import has too many documents for the web app. Please i
Error message
This import has too many documents for the web app. Please import it in the desktop client.
What it means
WebImportLimitError from preflightWebZipImport when the number of entries recognized as importable documents exceeds maxDocumentCount. Preflight guard keeping web imports within supported document limits.
Source
Thrown at packages/frontend/core/src/desktop/dialogs/import/web-limits.ts:45
) {
if (file.size > limits.maxTotalBytes) {
throw new WebImportLimitError(
'This import is too large for the web app. Please import it in the desktop client.'
);
}
const entries = readZipDirectory(new Uint8Array(await file.arrayBuffer()));
if (entries.length > limits.maxEntryCount) {
throw new WebImportLimitError(
'This import has too many files for the web app. Please import it in the desktop client.'
);
}
const documentCount = entries.filter(entry =>
isWebImportDocument(entry.name)
).length;
if (documentCount > limits.maxDocumentCount) {
throw new WebImportLimitError(
'This import has too many documents for the web app. Please import it in the desktop client.'
);
}
for (const entry of entries) {
if (entry.uncompressedSize > limits.maxEntryBytes) {
throw new WebImportLimitError(
'This import contains a file that is too large for the web app. Please import it in the desktop client.'
);
}
if (
limits.maxNestedZipDepth === 0 &&
entry.name.toLowerCase().endsWith('.zip')
) {
throw new WebImportLimitError(
'This import contains a nested zip. Please import it in the desktop client.'
);
}View on GitHub (pinned to b4c8548c09)
Solutions
- Use the desktop client for large document counts.
- Split the archive into multiple smaller imports.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown by preflightWebZipImport or preflightWebFilesImport when the number of importable documents (.md/.html/.htm) exceeds webImportLimits.maxDocumentCount (250).
Common situations: Hit when importing more than 250 Markdown/HTML documents at once in the web app. Import in smaller batches or use the desktop client.
AI-assisted analysis of toeverything/AFFiNE@b4c8548c09 (2026-08-18).
Data as JSON: /api/errors/f10eeb3b40f44a67.
Report an issue: GitHub.