admin/shared: clarified the "accept" field on uploads

Massimo Melina committed Jan 17, 2026 at 00:25 UTC 63f2cc75fbcb5012a5ccef8abe924cf5f65fcd11
2 files changed +2 -2
admin/src/FileForm.ts
+1 -1
@@ -200,7 +200,7 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved, i
200 showTimestamps && { k: 'birthtime', comp: DisplayField, sm: 6, lg: showSize && 4, label: "Created", toField: formatTimestamp },
201 showTimestamps && { k: 'mtime', comp: DisplayField, sm: 6, lg: showSize && 4, label: "Modified", toField: formatTimestamp },
202 showAccept && { k: 'accept', label: "Accept on upload", placeholder: "anything", xl: showWebsite ? 4 : 12,
203 - helperText: h(Link, { href: ACCEPT_LINK, target: '_blank' }, "Example: .zip") },
203 + helperText: h('span', {}, "Not enforced, just hinting the browser. ", h(Link, { href: ACCEPT_LINK, target: '_blank' }, "Example: .zip")) },
204 showWebsite && { k: 'default', comp: BoolField, xl: showAccept ? 8 : 12,
205 label: "Serve as web-page if index.html is found" + (inheritedDefault && values.default == null ? ' (inherited)' : ''),
206 value: values.default ?? inheritedDefault,
config.md
+1 -1
@@ -150,7 +150,7 @@ Valid keys in a node are:
150 - `order`: a number that you can set if you want to force the position of this element to the top or the bottom of the list.
151 A positive number for the top, negative for the bottom. If you set "1" for an entry and "2" for another, the "2" will be the topmost.
152 - `target`: optional, for links only, used to [open the link in a new browser](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). E.g. `_blank`
153 -- `accept`: valid only on upload folders, used to restrict the type of files you can upload. E.g. `.zip,.rar`
153 +- `accept`: valid only on upload folders; not enforced, just hinting the browser. E.g. `.zip,.rar`
154 - `default`: use this with a folder where you want to serve a file, instead of the standard page with the list of files.
155 The value must be the name of the file to serve. E.g.: `index.html`.
156 The value must be an absolute or relative path in the VFS, not a path on disk. It works also with other type of files.