From 244fda2f2c1f90a2cfb33375a7d0d94f5107afe1 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 3 Jul 2025 16:22:24 +0200 Subject: [PATCH 001/256] chore: base s6 image has now manifest for arm64 --- .goreleaser.yml | 2 +- Dockerfile.s6.aarch64 | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 Dockerfile.s6.aarch64 diff --git a/.goreleaser.yml b/.goreleaser.yml index debf6fa5..57b7b44a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -131,7 +131,7 @@ dockers: - "filebrowser/filebrowser:v{{ .Major }}-amd64-s6" extra_files: - docker - - dockerfile: Dockerfile.s6.aarch64 + - dockerfile: Dockerfile.s6 use: buildx build_flag_templates: - "--pull" diff --git a/Dockerfile.s6.aarch64 b/Dockerfile.s6.aarch64 deleted file mode 100644 index 0378d57c..00000000 --- a/Dockerfile.s6.aarch64 +++ /dev/null @@ -1,23 +0,0 @@ -FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22 - -RUN apk update && \ - apk --no-cache add ca-certificates mailcap curl jq - -# Make user and create necessary directories -RUN mkdir -p /config /database /srv && \ - chown -R abc:abc /config /database /srv - -# Copy files and set permissions -COPY filebrowser /bin/filebrowser -COPY docker/common/ / -COPY docker/s6/ / - -RUN chown -R abc:abc /bin/filebrowser /defaults healthcheck.sh - -# Define healthcheck script -HEALTHCHECK --start-period=2s --interval=5s --timeout=3s CMD /healthcheck.sh - -# Set the volumes and exposed ports -VOLUME /srv /config /database - -EXPOSE 80 From 046d6193c57b4df0e3dc583b6518b43d29d302c9 Mon Sep 17 00:00:00 2001 From: Ryan <43447928+Rmiller5466@users.noreply.github.com> Date: Sat, 5 Jul 2025 02:15:17 -0400 Subject: [PATCH 002/256] fix: lookup directory name if blank when downloading shared directory --- http/raw.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/http/raw.go b/http/raw.go index 4e9438e8..cd05a1bc 100644 --- a/http/raw.go +++ b/http/raw.go @@ -177,7 +177,18 @@ func rawDirHandler(w http.ResponseWriter, r *http.Request, d *data, file *files. name := filepath.Base(commonDir) if name == "." || name == "" || name == string(filepath.Separator) { - name = file.Name + // Not sure when/if this will ever be true, though kept incase there is an edge-case where it is + if file.Name != "" { + name = file.Name + } else { + // This should indicate that the fs root is the directory being downloaded, lookup its name + + actual, statErr := file.Fs.Stat(".") + if statErr != nil { + return http.StatusInternalServerError, statErr + } + name = actual.Name() + } } // Prefix used to distinguish a filelist generated // archive from the full directory archive From cc6db8398885ae4122bdd770ebe89c9a9a71ae62 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 6 Jul 2025 08:53:05 +0200 Subject: [PATCH 003/256] chore(release): 2.36.2 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 753ad536..2edff4b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.36.2](https://github.com/filebrowser/filebrowser/compare/v2.36.1...v2.36.2) (2025-07-06) + + +### Bug Fixes + +* lookup directory name if blank when downloading shared directory ([046d619](https://github.com/filebrowser/filebrowser/commit/046d6193c57b4df0e3dc583b6518b43d29d302c9)) + ### [2.36.1](https://github.com/filebrowser/filebrowser/compare/v2.36.0...v2.36.1) (2025-07-03) From 3645b578cddb9fc8f25a00e0153fb600ad1b9266 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 6 Jul 2025 12:12:57 +0200 Subject: [PATCH 004/256] fix: log error if branding file exists but cannot be loaded --- http/static.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http/static.go b/http/static.go index 47d828c6..447471d2 100644 --- a/http/static.go +++ b/http/static.go @@ -124,7 +124,10 @@ func getStaticHandlers(store *storage.Storage, server *settings.Server, assetsFs if d.settings.Branding.Files != "" { if strings.HasPrefix(r.URL.Path, "img/") { fPath := filepath.Join(d.settings.Branding.Files, r.URL.Path) - if _, err := os.Stat(fPath); err == nil { + _, err := os.Stat(fPath) + if err != nil && !os.IsNotExist(err) { + log.Printf("could not load branding file override: %v", err) + } else if err == nil { http.ServeFile(w, r, fPath) return 0, nil } From 200b9a6c260e688a33d6b6f65f31f81a4e2a2278 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 6 Jul 2025 12:20:49 +0200 Subject: [PATCH 005/256] chore(release): 2.36.3 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2edff4b8..c804baeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.36.3](https://github.com/filebrowser/filebrowser/compare/v2.36.2...v2.36.3) (2025-07-06) + + +### Bug Fixes + +* log error if branding file exists but cannot be loaded ([3645b57](https://github.com/filebrowser/filebrowser/commit/3645b578cddb9fc8f25a00e0153fb600ad1b9266)) + ### [2.36.2](https://github.com/filebrowser/filebrowser/compare/v2.36.1...v2.36.2) (2025-07-06) From 65bbf44e3c0bff83e64193d46e9d6ad302952276 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Sun, 6 Jul 2025 07:57:21 +0000 Subject: [PATCH 006/256] feat: Translate frontend/src/i18n/en.json in zh_CN 100% translated source file: 'frontend/src/i18n/en.json' on 'zh_CN'. --- frontend/src/i18n/zh-cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/i18n/zh-cn.json b/frontend/src/i18n/zh-cn.json index daa45619..fac470e8 100644 --- a/frontend/src/i18n/zh-cn.json +++ b/frontend/src/i18n/zh-cn.json @@ -170,7 +170,7 @@ "commandRunnerHelp": "你可以在此设置在下列事件中执行的命令。每行必须写一条命令。可以在命令中使用环境变量 {0} 和 {1},使 {0} 与 {1} 相关联。关于此功能和可用环境变量的更多信息,请阅读 {2}。", "commandsUpdated": "命令已更新!", "createUserDir": "在添加新用户的同时自动创建用户的主目录", - "minimumPasswordLength": "Minimum password length", + "minimumPasswordLength": "最小密码长度", "tusUploads": "分块上传", "tusUploadsHelp": "File Browser 支持分块上传,在不佳的网络下也可进行高效、可靠、可续的文件上传", "tusUploadsChunkSize": "分块上传大小,例如 10MB 或 1GB", From e423395ef0bcd106ddc7d460c055b95b5208415e Mon Sep 17 00:00:00 2001 From: jagadam97 Date: Sun, 6 Jul 2025 16:52:26 +0530 Subject: [PATCH 007/256] fix: Upload progress size calculation --- frontend/src/stores/upload.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/stores/upload.ts b/frontend/src/stores/upload.ts index 3ea93037..d9698255 100644 --- a/frontend/src/stores/upload.ts +++ b/frontend/src/stores/upload.ts @@ -74,7 +74,12 @@ export const useUploadStore = defineStore("upload", { if (state.progress.length === 0 || state.sizes.length === 0) { return "0 Bytes"; } - const sum = state.progress.reduce((acc, val) => +acc + +val, 0) as number; + const sum = state.progress.reduce( + (sum, p, i) => + (sum as number) + + (typeof p === "number" ? p : p ? state.sizes[i] : 0), + 0 + ) as number; return formatSize(sum); }, getTotalSize: (state) => { From 1e96fd9035d5185dc80970a2826ccb573b5f000e Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Sun, 6 Jul 2025 16:46:44 +0000 Subject: [PATCH 008/256] feat: Translate frontend/src/i18n/en.json in zh_TW 99% of minimum 50% translated source file: 'frontend/src/i18n/en.json' on 'zh_TW'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format --- frontend/src/i18n/zh-tw.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/i18n/zh-tw.json b/frontend/src/i18n/zh-tw.json index 7566675d..9bc1adb6 100644 --- a/frontend/src/i18n/zh-tw.json +++ b/frontend/src/i18n/zh-tw.json @@ -170,7 +170,7 @@ "commandRunnerHelp": "在這裡你可以設定在下面的事件中執行的命令。每行必須寫一條命令。可以在命令中使用環境變數 {0} 和 {1}。關於此功能和可用環境變數的更多資訊,請閱讀{2}.", "commandsUpdated": "命令已更新!", "createUserDir": "在新增新使用者的同時自動建立使用者的個人目錄", - "minimumPasswordLength": "Minimum password length", + "minimumPasswordLength": "密碼最短長度", "tusUploads": "分塊上傳", "tusUploadsHelp": "File Browser 支援分塊上傳,在不佳的網絡環境下也可進行高效、可靠、可續的檔案上傳", "tusUploadsChunkSize": "分塊上傳大小,例如 10MB 或 1GB", From b28952cb2582bd4eb44e91d0676e2803c458cf31 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Sun, 6 Jul 2025 16:51:07 +0000 Subject: [PATCH 009/256] feat: Translate frontend/src/i18n/en.json in zh_TW 100% translated source file: 'frontend/src/i18n/en.json' on 'zh_TW'. --- frontend/src/i18n/zh-tw.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/i18n/zh-tw.json b/frontend/src/i18n/zh-tw.json index 9bc1adb6..966cb14e 100644 --- a/frontend/src/i18n/zh-tw.json +++ b/frontend/src/i18n/zh-tw.json @@ -24,7 +24,7 @@ "ok": "確認", "permalink": "獲取永久連結", "previous": "上一個", - "preview": "Preview", + "preview": "預覽", "publish": "發佈", "rename": "重新命名", "replace": "更換", From bf73e4dea3b27c01c8f6e60fb2048e1a2122a70e Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 8 Jul 2025 07:29:13 +0200 Subject: [PATCH 010/256] fix: preview PDF is correctly displayed --- frontend/src/views/files/Preview.vue | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 7170e3da..1f12cadd 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -60,7 +60,7 @@
+