Documents and files
File bytes are read in memory. They are not written to disk and they are not stored in Redis.
Shield, Safe AI chat, and the extension accept the same maskable set. A scanned PDF is charged from the document-page allowance after the read. The mime type does not know that the page is a scan. One native-text page is 2,500 characters. Allowances are in Plans.
Read in memory
Section titled “Read in memory”Documents: PDF, DOCX, RTF, plain text, Markdown, ODT.
Spreadsheets: XLSX, XLSM, CSV, TSV, ODS, OFX.
Presentations: PPTX, ODP.
Images: PNG, JPEG, WebP, GIF, TIFF, BMP, SVG.
Mail and data: EML, vCard, ICS, JSON, XML, HTML, YAML, QBO.
The native tool maskdoor_sanitize_document uses this set. Pass the file’s mime type with the base64 bytes.
Left unread
Section titled “Left unread”These types can be named in a drop, and they are not extracted: legacy Word, Excel, and PowerPoint (.doc, .xls, .ppt), Apple iWork, HEIC, design and CAD files, archives, Outlook .msg, and video. There is no reader for them here. HEIC stays off this set.
A file over the plan’s upload size or page cap is refused. The caps are in Plans.