clarified scope of some upload configs
Massimo Melina committed
Feb 16, 2026 at 13:10 UTC
f47a5c16b9ad43b869a5e968cc44ec8b87ef8f1d
3 files changed
+5
-3
AGENTS.md
+1
@@ -25,6 +25,7 @@ Use TypeScript/ES2022 with 4-space indentation and single quotes except when JSO
25
## Testing Guidelines
26
Node-side tests rely on the built-in `node --test` runner via `npm test`. Place fixtures under `tests/work` where scripts already expect them. UI coverage uses Playwright (`tests-ui`/`frontend` suites); target critical upload/download flows and plugin management. Name new tests after the behavior they assert (e.g., `plugin-disable.test.ts`). Before pushing, run at least `npm test` and, when touching UI, the relevant Playwright suite.
27
When you want to run fewer tests, use `npm run test-with-server -- --test-name-pattern="<pattern>"`.
28
+If port `8081` is already in use, run the filtered suite with `npm test -- --test-name-pattern="<pattern>"` instead of `test-with-server`.
29
For long-running commands like tests/builds, use a 30s timeout unless a different value is requested.
30
Changes to the config are automatically reloaded and applied asap, no need to restart.
31
admin/src/OptionsPage.ts
+2
-2
@@ -210,10 +210,10 @@ export default function OptionsPage() {
210
211
h(Section, { title: "Uploads" }),
212
{ k: 'dont_overwrite_uploading', comp: BoolField, md: 4, label: "Uploads don't overwrite",
213
- helperText: "Files will be numbered to avoid overwriting" },
213
+ helperText: "Files are automatically numbered (frontend only)" },
214
{ k : CFG.split_uploads, comp: NumberField, unit: 'MB', md: 2, step: .1,
215
fromField: x => x * 1E6, toField: x => x ? x / 1E6 : null,
216
- placeholder: "disabled", label: "Split uploads in chunks", helperText: "Overcome proxy limits" },
216
+ placeholder: "disabled", label: "Split uploads in chunks", helperText: "Overcome proxy limits (frontend only)" },
217
{ k: 'delete_unfinished_uploads_after', comp: NumberField, md: 3, min : 0, unit: "seconds", required: true },
218
{ k: 'min_available_mb', comp: NumberField, md: 3, min : 0, unit: "MBytes", placeholder: "None",
219
label: "Min. available disk space", helperText: "Reject uploads that don't comply" },
config.md
+2
-1
@@ -85,7 +85,8 @@ Configuration can be done in several ways
85
- `title` text displayed in the tab of your browser. Default is "File server".
86
- `file_menu_on_link` if to display file-menu when clicking on link, or have a dedicated button instead. Default is true.
87
- `min_available_mb` refuse to accept uploads if available disk space is below this threshold. Default is 100.
88
-- `dont_overwrite_uploading` uploading a file with name already present in the folder will be renamed if this is enabled. Default is true.
88
+- `dont_overwrite_uploading` uploading a file with name already present in the folder will have a number appended in the name if this is enabled.
89
+ Default is true. Affects the frontend only, but you can get the same effect using the `?existing=rename` in the url.
90
- `keep_session_alive` keeps you logged in while the page is left open and the computer is on. Default is true.
91
- `session_duration` after how many seconds should the login session expire. Default is a day.
92
- `acme_domain` domain used for ACME certificate generation. Default is none.