Errors

Document too large to preview in browser

Server 413: document exceeds the browser preview size limit — download the full file instead.

Document too large to preview in browser

Document preview refused the file because sizeBytes is over the inline preview cap. Full text asks you to create a download link instead (413).

Why this happens

stream-download-document-preview enforces hard caps before streaming (PDF and text limits differ). Same family as audio/image/video “too large to preview” messages. Full download via grant still follows normal download rules.

Diagnose and fix

1. Visitor: Create download link and download the file normally.

2. Admin: caps are code constants — not raised in Users & limits.

3. Keep Document Mod enabled for files that *are* under the cap.

4. If download itself fails, check bandwidth / max download size — separate gates.

Related