---
title: Linked data file types
summary: The files that can be linked to objects, per family with its icon colour, its extensions, how they are stored and whether they open in the browser, and the extensions that are never accepted.
order: 56
terms: [linked-data]
see-also: [explanation/linked-data, how-to/using-bimworks/link-data-to-objects, how-to/api/link-data, reference/file-types]
---

# Linked data file types

A file linked to an object as [[term:linked-data|linked data]] is accepted by its extension, and its content has to be what the extension says: a ZIP archive named `.pdf` is refused. The extension puts the file in a family, which gives it its icon colour in the UI, decides how its bytes are stored, and whether it may be shown in the browser. The table is the default list; an instance can take extensions off it in its configuration (`linked_data.extensions: [default, -dwg]`). The extensions [never accepted](#denied) are refused on every instance, whatever the configuration says. A file may be up to 100 MiB by default (`linked_data.max_file_bytes`).

<table>
<thead><tr><th>Family</th><th>Extensions</th><th>Stored</th><th>Served</th></tr></thead>
<tbody>
<tr id="pdf"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#C62828"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">PDF</text></svg> PDF<a class="anchor" href="#pdf" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-pdf">#C62828</span></td><td>.pdf</td><td>probed</td><td>inline</td></tr>
<tr id="documents"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#2B579A"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="6.2" font-weight="700" fill="#fff">DOCX</text></svg> Documents<a class="anchor" href="#documents" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-doc">#2B579A</span></td><td>.docx, .doc, .odt, .rtf, .pages</td><td>as is: .docx, .odt, .pages<br>probed: .doc<br>compressed: .rtf</td><td>attachment</td></tr>
<tr id="spreadsheets"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#1E7145"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="6.2" font-weight="700" fill="#fff">XLSX</text></svg> Spreadsheets<a class="anchor" href="#spreadsheets" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-sheet">#1E7145</span></td><td>.xlsx, .xls, .ods, .csv, .tsv, .numbers</td><td>as is: .xlsx, .ods, .numbers<br>probed: .xls<br>compressed: .csv, .tsv</td><td>attachment: .xlsx, .xls, .ods, .numbers<br>inline: .csv, .tsv</td></tr>
<tr id="presentations"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#B7472A"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="6.2" font-weight="700" fill="#fff">PPTX</text></svg> Presentations<a class="anchor" href="#presentations" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-slides">#B7472A</span></td><td>.pptx, .ppt, .odp, .key</td><td>as is: .pptx, .odp, .key<br>probed: .ppt</td><td>attachment</td></tr>
<tr id="images"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#7B4FA8"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">JPG</text></svg> Images<a class="anchor" href="#images" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-image">#7B4FA8</span></td><td>.jpg, .jpeg, .png, .gif, .webp, .heic, .heif, .tif, .tiff, .bmp, .svg</td><td>as is: .jpg, .jpeg, .png, .gif, .webp, .heic, .heif<br>probed: .tif, .tiff<br>compressed: .bmp, .svg</td><td>inline: .jpg, .jpeg, .png, .gif, .webp<br>attachment: .heic, .heif, .tif, .tiff, .bmp, .svg</td></tr>
<tr id="media"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#AD1457"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">MP4</text></svg> Video &amp; audio<a class="anchor" href="#media" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-media">#AD1457</span></td><td>.mp4, .mov, .webm, .m4v, .mp3, .m4a, .wav, .ogg</td><td>as is: .mp4, .mov, .webm, .m4v, .mp3, .m4a, .ogg<br>probed: .wav</td><td>inline: .mp4, .webm, .mp3, .m4a, .wav, .ogg<br>attachment: .mov, .m4v</td></tr>
<tr id="drawings-3d"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#00796B"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">DWG</text></svg> Drawings &amp; 3D<a class="anchor" href="#drawings-3d" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-cad">#00796B</span></td><td>.dwg, .dxf, .dgn, .step, .stp, .stl, .obj, .glb, .gltf, .3mf, .las, .laz, .e57</td><td>probed: .dwg, .dgn, .stl, .glb, .las, .e57<br>compressed: .dxf, .step, .stp, .obj, .gltf<br>as is: .3mf, .laz</td><td>attachment</td></tr>
<tr id="bim"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#3949AB"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">IFC</text></svg> BIM<a class="anchor" href="#bim" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-bim">#3949AB</span></td><td>.ifc, .ifczip, .ifcxml, .bcf, .bcfzip, .ids, .rvt, .rfa, .nwd, .nwc, .pln, .skp, .3dm</td><td>compressed: .ifc, .ifcxml, .ids<br>as is: .ifczip, .bcf, .bcfzip<br>probed: .rvt, .rfa, .nwd, .nwc, .pln, .skp, .3dm</td><td>attachment</td></tr>
<tr id="gis"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#5B7A1E"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">GEO</text></svg> GIS<a class="anchor" href="#gis" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-gis">#5B7A1E</span></td><td>.geojson, .kml, .kmz, .gml, .citygml, .gpkg, .shp.zip</td><td>compressed: .geojson, .kml, .gml, .citygml<br>as is: .kmz, .shp.zip<br>probed: .gpkg</td><td>attachment</td></tr>
<tr id="text-data"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#546E7A"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">TXT</text></svg> Text &amp; data<a class="anchor" href="#text-data" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-text">#546E7A</span></td><td>.txt, .md, .json, .xml, .yaml, .yml, .log</td><td>compressed</td><td>inline</td></tr>
<tr id="email"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#9A6700"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">EML</text></svg> E-mail<a class="anchor" href="#email" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-mail">#9A6700</span></td><td>.eml, .msg</td><td>compressed: .eml<br>probed: .msg</td><td>attachment</td></tr>
<tr id="archives"><td><svg width="16" height="19" viewBox="0 0 24 28" aria-hidden="true" style="vertical-align:-4px"><path d="M4 1h11l7 7v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z" fill="#6D4C41"/><path d="M15 1v6a1 1 0 0 0 1 1h6z" fill="#fff" fill-opacity=".45"/><text x="12.5" y="22.5" text-anchor="middle" font-size="7.4" font-weight="700" fill="#fff">ZIP</text></svg> Archives<a class="anchor" href="#archives" aria-label="Link to this family">#</a><br><span style="font-size:12px;color:var(--bw-text-note)" title="--bw-file-archive">#6D4C41</span></td><td>.zip</td><td>as is</td><td>attachment</td></tr>
</tbody>
</table>

*Stored*: **compressed** files are always stored with zstd; **as is** files are already compressed (JPEG, MP4, ZIP and the Office formats that are ZIP files) and stored as uploaded; for **probed** files the first 1 MiB is compressed as a trial, and the whole file only when the trial saves at least 10 % (`linked_data.compression`). Files under 4 KiB are never compressed. Either way a download is the file byte for byte as uploaded.

*Served*: an **inline** file may be shown in the browser (a PDF, a photo, a video, plain text); an **attachment** is always saved as a file. An SVG is never shown at its own address, because its scripts would run there.

## Checks on the content {#checks}

The extension is not enough. The first bytes of a file must match its family (`FILE_CONTENT_MISMATCH`); a few CAD formats without a reliable signature are taken by their extension. A program is refused whatever its name (`FILE_CONTENT_NOT_ALLOWED`), and so is an Office file with macros (`MACROS_NOT_ALLOWED`). A ZIP archive is inspected without unpacking it: every file in it must be allowed, and it may not hold another archive, encrypted entries or far more than its own size (`ARCHIVE_CONTENT_NOT_ALLOWED`).

## Never accepted {#denied}

Programs, scripts, installers, disk images, shortcuts, HTML (it would run its scripts in BIM.works) and the macro-enabled Office formats, whose macro-free siblings are allowed. Every part of a name is checked, so `report.pdf.exe` and `report.exe.pdf` are both refused (`FILE_TYPE_NOT_ALLOWED`). No configuration allows them.

.exe, .dll, .com, .scr, .pif, .cpl, .msi, .msp, .msix, .appx, .appxbundle, .sys, .drv, .ocx, .bat, .cmd, .ps1, .psm1, .psd1, .vbs, .vbe, .js, .jse, .mjs, .wsf, .wsh, .wsc, .sh, .bash, .zsh, .csh, .ksh, .command, .py, .pyc, .pyw, .rb, .pl, .php, .phtml, .asp, .aspx, .jsp, .cgi, .jar, .class, .war, .ear, .apk, .aab, .ipa, .dmg, .pkg, .app, .deb, .rpm, .snap, .appimage, .iso, .img, .vhd, .vhdx, .lnk, .url, .website, .scf, .inf, .reg, .hta, .chm, .gadget, .application, .xbap, .settingcontent-ms, .library-ms, .desktop, .html, .htm, .xhtml, .mht, .mhtml, .shtml, .svgz, .docm, .dotm, .xlsm, .xltm, .xlam, .xlsb, .pptm, .potm, .ppam, .ppsm, .sldm
