Commit Graph

519 Commits

Author SHA1 Message Date
lif 4286d75b4d fix: prevent download of files with pending deletion status (#344)
Add check in GetFile() to return false for files that have a pending
deletion timestamp set. This fixes a race condition where files could
still be downloaded during the grace period after deletion was
scheduled but before the actual deletion occurred.

Fixes #341

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: majiayu000 <1835304752@qq.com>
2026-01-12 13:15:25 +01:00
Marc Ole Bulling 638b29fbbc Raise error if the database if from a newer Gokapi version 2026-01-12 12:30:25 +01:00
Marc Bulling 6b07bf0194 Check if enough free space is available before accepting an upload (#349), fixed docs 2026-01-12 12:08:54 +01:00
Marc Ole Bulling 568f535ba2 Make Dropzone uuid generation more secure 2026-01-06 15:48:44 +01:00
Marc Ole Bulling c1d2bf9623 Better animation for permissions 2026-01-02 13:21:47 +01:00
Marc Ole Bulling 21725ef549 Added on hover effect for permission icons 2026-01-02 12:57:36 +01:00
Marc Ole Bulling b490ada6a6 Change sqlite busy timeout to 30s 2026-01-01 12:39:43 +01:00
Marc Ole Bulling 2fafae8b60 Updated bootstrap icons, replaced bi-share with svg to fix #274 2025-12-31 12:32:12 +01:00
Marc Bulling b761ee7d82 Use browser timezone instead of server timezone for UI, breaking API output for FileList (#343)
* Make dates in Upload view browser TZ, BREAKING change API output to UTC for ExpireAtString

* Changed user and api key overview to local TZ, increased JS version

* Fixed FileList API output to comply with API specs, fixed tests
2025-12-29 11:53:56 +01:00
Marc Ole Bulling a8c79ce6ea Decrypt file info when restoring an e2e encrypted file 2025-12-20 21:05:09 +01:00
Marc Bulling 75745aebb8 Use short-lived tokens instead of user API keys (#340) 2025-12-20 21:02:17 +01:00
Marc Ole Bulling 14b2f7b645 Added warning if Redis persistence is disabled and added documentation 2025-12-04 17:31:26 +01:00
Marc Ole Bulling 5a03054f22 Fixed documentation regarding DB migration 2025-12-04 16:26:10 +01:00
Marc Ole Bulling 41682f205f Updated dependencies 2025-12-01 19:03:47 +01:00
Marc Ole Bulling 41545237be Fixed JS error when a user without Manage Users permission was creating a new API key, disable selection of API permissions for new keys when user does not have the required user permission 2025-12-01 18:55:09 +01:00
spaghetti-coder 84eb70edbb Add deprecation alerts, deprecate DOCKER_NONROOT in favor of docker --user ... (#327)
* deprecate DOCKER_NONROOT in favor of docker --user ...

* remove redundant named volumes creation in compose
* remove DOCKER_NONROOT from demo env file
* add deprecation warning to docker entrypoint
* update documentation

* Added feature to show deprecation messages in UI and logs
Added deprecation message for Docker_NONROOT
Fixed documentation

---------

Co-authored-by: Marc Ole Bulling <Marc-Ole@gmx.de>
2025-11-04 22:26:04 +01:00
Paul Draeger a1efcdf2cf Added env variable to set a minium password length (#312)
Co-authored-by: Marc Ole Bulling <Marc-Ole@gmx.de>
2025-10-20 17:48:46 +02:00
Marc Ole Bulling 8c375e9031 Fixed Docker image not displaying git commit hash #309 2025-10-20 15:41:33 +02:00
Marc Bulling 8765878270 Delete .github/workflows/codeql.yml 2025-10-19 22:49:03 +02:00
Marc Bulling 174fa4f21e Create codeql.yml 2025-10-19 22:35:08 +02:00
Marc Ole Bulling d3d56cc7a9 Fixed possible null-pointer exception, fixed Docker binary not showing git details #309 2025-10-19 21:42:54 +02:00
Marc Ole Bulling f68efc57a2 Better error handling for permission errors or other file related errors #326 2025-10-19 21:10:35 +02:00
Marc Ole Bulling 077570c0ff Only allow expiry for up to 100000 days (270 years) 2025-10-15 15:54:18 +02:00
Marc Ole Bulling dfd55462ea Fixed not being able to paste into input fields #321 2025-10-15 15:32:01 +02:00
Marc Ole Bulling d774d2c1be Added feature to use custom favicon #305 2025-08-30 22:06:17 +02:00
Marc Ole Bulling e26bc3a087 Added noindex tag #304 2025-08-30 20:34:22 +02:00
Marc Ole Bulling 1a6678eb38 Fixed documentation v2.1.0 2025-08-29 14:56:13 +02:00
Marc Ole Bulling 4009d3cd13 Added documention note for CLI tool 2025-08-29 14:44:48 +02:00
Marc Ole Bulling 28d1660482 Added changelog 2025-08-29 14:15:40 +02:00
Marc Ole Bulling a4278fa399 Fixed docker-compose 2025-08-29 14:01:17 +02:00
Marc Ole Bulling ff6cc6895f Minor refactoring 2025-08-29 13:39:43 +02:00
Marc Ole Bulling 16e4079ffa Fixed tests 2025-08-29 11:20:07 +02:00
Marc Ole Bulling 8783499163 Switch to Go1.25, remove legacy upgrade code, small refactoring 2025-08-29 11:02:00 +02:00
Marc Ole Bulling 04966762b8 Disable parallel uploads, set default chunks to 4 to prevent reaching max connection limit on HTTP1.1 #278 2025-08-29 10:20:37 +02:00
Marc Ole Bulling 04d0e4e175 Added option in gokapi-cli to zip and upload a folder #294, edited documentation 2025-08-28 21:57:35 +02:00
Marc Ole Bulling 3dd574002a Allow changing of configuration file for docker #292, refactoring, comments 2025-08-28 20:05:15 +02:00
Marc Ole Bulling b6799afa66 Fixed incorrect handling of e2e filename decryption #300 2025-08-28 16:03:23 +02:00
Marc Ole Bulling be5dee136c Fixed minor HTML syntax errors in setup 2025-08-28 15:17:54 +02:00
Marc Ole Bulling b9cc58c706 Fixed crash when file was saved in AWS, but no AWS credentials were provided 2025-08-28 14:33:41 +02:00
Marc Ole Bulling dd5a0b29be Set content disposition name to UTF-8 #302 2025-08-28 14:17:53 +02:00
Marc Ole Bulling 24769223c2 Better error handling for CLI, updated documentation #288 2025-08-09 11:36:47 +02:00
Marc Ole Bulling 328ce98037 Added short flags to CLI #289 2025-08-09 09:56:04 +02:00
Marc Ole Bulling 5aa57c996c Fix CLI docker builder 2025-08-08 23:33:39 +02:00
Marc Ole Bulling 25fb6351be Added Docker release for CLI, updated documentation, added docker-specific features to CLI 2025-08-08 23:29:53 +02:00
Marc Bulling 9a574dbed5 Added a CLI tool for uploading that also supports e2e (#280) 2025-08-08 16:51:54 +02:00
Marc Ole Bulling 90c686de7c Fixed WASM crash after uploading e2e file #283 2025-08-06 12:42:28 +02:00
Marc Ole Bulling 518aea1b93 Fixed bug where file was deleted after uploading through API if not supplying allowedDownloads or expiryDays in ChunkComplete #282 2025-07-31 00:01:14 +02:00
Marc Ole Bulling 44f1eb346c Also display pointer cursor when button is created with JS #275 2025-07-18 18:07:13 +02:00
Marc Ole Bulling 9cf2a402e3 Fixed incorrect cursor pointer on hover of share button and hotlink items #275, added check for github login 2025-07-18 17:59:52 +02:00
Marc Ole Bulling b1349ae34d Automatically create changelogs from Github releases, fixed spelling 2025-06-26 14:21:33 +02:00