admin/options: clarify MIME type configuration

Massimo Melina committed Jul 21, 2026 at 17:50 UTC 58e17fee86c16af85a1676b2f77c138078bf6ad3
2 files changed +3 -3
admin/src/OptionsPage.ts
+2 -1
@@ -244,7 +244,7 @@ export default function OptionsPage() {
244 },
245 { k: 'zip_calculate_size_for_seconds', comp: NumberField, xs: 12, sm: 6, md: 3, unit: "seconds", required: true,
246 label: "Calculate ZIP size for", helperText: "If time is not enough, the browser will not show download percentage" },
247 - { k: 'mime', comp: ArrayField, label: false, reorder: true, prepend: true, xs: 12, sm: 12, md: 6,
247 + { k: 'mime', comp: ArrayField, label: "Custom MIME types", reorder: true, prepend: true, xs: 12, sm: 12, md: 6,
248 fields: [
249 { k: 'v', label: "Mime type", placeholder: "auto", $width: 2, helperText: "Leave empty to get automatic value" },
250 { k: 'k', label: "File mask", helperText: h(WildcardsSupported), $width: 1, $column: {
@@ -258,6 +258,7 @@ export default function OptionsPage() {
258 ],
259 toField: x => Object.entries(x || {}).map(([k,v]) => ({ k, v })),
260 fromField: x => Object.fromEntries(x.map((row: any) => [row.k, row.v || 'auto'])),
261 + helperText: "Most MIME types are detected automatically",
262 },
263
264 { k: CFG.force_webdav_login, comp: WebdavAgentAuthField, sm: true, label: "WebDAV force login",
config.md
+1 -2
@@ -63,8 +63,7 @@ Some properties use a `Who` descriptor, with one of these values:
63 - `error_log` path of the log file for errors. Default is `error.log`.
64 - `dont_log_net` don't include in log entries if IP matches this network mask. Default is `127.0.0.1|::1`.
65 - `accounts` list of accounts. For details see the dedicated following section.
66 -- `mime` command what mime-type to be returned with some files.
67 - E.g.: `"*.jpg": image/jpeg`
66 +- `mime` most types are already detected automatically, but you can override them. E.g.: `"*.jpg": image/jpeg`
67 You can specify multiple entries, or separate multiple file masks with a p|pe.
68 You can use the special value `auto` to attempt automatic detection.
69 - `max_kbps` throttle output speed. Default is Infinity.