@samitouri / QOSami-HFS / commits / 0d6fd89d

new default for dont_overwrite_uploading: true

Massimo Melina committed Mar 21, 2024 at 14:08 UTC 0d6fd89de80e253d5dea4271e49082003b4e92a0
2 files changed +2 -2
config.md
+1 -1
@@ -78,7 +78,7 @@ Configuration can be done in several ways
78 - `title` text displayed in the tab of your browser. Default is "File server".
79 - `file_menu_on_link` if to display file-menu when clicking on link, or have a dedicated button instead. Default is true.
80 - `min_available_mb` refuse to accept uploads if available disk space is below this threshold. Default is 100.
81 -- `dont_overwrite_uploading` uploading a file with name already present in the folder will be renamed if this is enabled. Default is false.
81 +- `dont_overwrite_uploading` uploading a file with name already present in the folder will be renamed if this is enabled. Default is true.
82 - `keep_session_alive` keeps you logged in while the page is left open and the computer is on. Default is true.
83 - `session_duration` after how many seconds should the login session expire. Default is a day.
84 - `acme_domain` domain used for ACME certificate generation. Default is none.
src/upload.ts
+1 -1
@@ -19,7 +19,7 @@ import { setCommentFor } from './comments'
19
20 export const deleteUnfinishedUploadsAfter = defineConfig<undefined|number>('delete_unfinished_uploads_after', 86_400)
21 export const minAvailableMb = defineConfig('min_available_mb', 100)
22 -export const dontOverwriteUploading = defineConfig('dont_overwrite_uploading', false)
22 +export const dontOverwriteUploading = defineConfig('dont_overwrite_uploading', true)
23
24 const waitingToBeDeleted: Record<string, ReturnType<typeof setTimeout>> = {}
25