Commit Graph

332 Commits

Author SHA1 Message Date
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 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 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 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 eff0448cf3 Added .env and updated docker-compose, removed unused GOKAPI_DATABASE_URL and GOKAPI_AWS_PROXY_DOWNLOAD 2025-06-10 12:52:34 +02:00
Marc Ole Bulling 3e2a8aa4a4 Fixed tests 2025-06-10 11:12:50 +02:00
Marc Ole Bulling f3df06224b Fixed error when username was less than 4 characters long #268 2025-06-10 11:09:12 +02:00
Marc Ole Bulling 5f22cfe748 Removed superfluous function generateUnsafeId 2025-06-08 16:30:29 +02:00
Marc Ole Bulling e60e5c5472 Fixed upload failing or showing incorrect filename for non-ASCII filenames #269, added option to base64 encode filename in API, fixed API documentation 2025-06-08 16:23:51 +02:00
Marc Ole Bulling dc7d699e61 Added tests 2025-06-06 15:17:35 +02:00
Marc Bulling 9f36e90153 Fixed racy mutation that prevented file restoration in edge case, better test, fixed spelling (#262)
* Fix racy mutation, spelling
* Use timeout instead of fixed time, change delay to internally use ms instead of s
2025-06-01 00:35:26 +02:00
Marc Ole Bulling d3578e9bb8 Fixed undo-toast being clickable when not shown 2025-05-31 13:02:52 +02:00
Marc Ole Bulling 1969d43dd9 Fixed JS function being overwritten in last commit, added DB cache, fixed tests 2025-05-31 12:55:40 +02:00
Marc Ole Bulling 4eaab13d11 Group buttons in Api and User view 2025-05-30 22:31:55 +02:00
Marc Ole Bulling 1a6f430fea Add share menu, group buttons #252 2025-05-30 22:09:12 +02:00
Marc Bulling 343cc566cf Fix CVE-2025-48494 XSS vulnerability for file upload, refactoring and formatting 2025-05-30 21:12:32 +02:00
Marc Bulling 65ddbc68fb Fix CVE-2025-48495 XSS vulnerability for API key name, refactoring and formatting 2025-05-30 20:59:40 +02:00
Marc Ole Bulling c896596b63 Fixed incorrect Download count showing when restoring file 2025-05-30 18:15:11 +02:00
Marc Bulling d8340911d5 Add restore feature when deleting file from admin menu or API (#261)
* Added API call /files/restore, added parameter to /files/delete to add delay, have 10s delay when deleting from UI

* Fixed DB upgrade function not exiting on old version, added and fixed tests
2025-05-28 11:33:39 +02:00
Marc Ole Bulling 20ee8cbfa4 Minor refactoring and adding of comments 2025-05-25 17:07:06 +02:00
Marc Bulling 6d68134240 Added upload timestamp to metadata and API output, sort by upload data in main menu (#260) 2025-05-25 16:20:31 +02:00
Remco Brink ba54607e92 Refactor group scope handling to support both strings and array (#244)
Refactor group scope handling to support both string and array
2025-05-19 20:49:11 +02:00
Marc Bulling d4bfad90c3 Add feature to add custom css/js instead of overwriting all content (#248) 2025-05-19 20:43:18 +02:00
Marc Bulling e41c4bd1ff Allow file deletion without refreshing the page (#255) 2025-05-03 17:37:00 +02:00
Jakub 14d6448c57 Change hotlink URL to be shorter (#253) 2025-04-21 00:13:45 +02:00
Marc Ole Bulling 7928aedce7 Fixed tests 2025-04-19 22:23:20 +02:00
Marc Ole Bulling 92c42fe250 Make GOKAPI_LENGTH_ID non-permanent, add GOKAPI_LENGTH_HOTLINK_ID to change hotlink ID length #251 2025-04-19 22:06:20 +02:00
Marc Ole Bulling d82303f96f Fix that an empty line was inserted before <!doctype html> 2025-03-28 22:39:06 +01:00
Marc Ole Bulling 0fba1230f7 Fix bug where picture files where not uploaded at all when encryption and cloud storage was active as well as SaveToLocal #247 2025-03-24 21:33:43 +01:00
Marc Ole Bulling 450a25ad7a fixed test 2025-03-24 12:04:16 +01:00
Marc Ole Bulling cbd0cc7708 Enable hotlinking for videos with env var, removed deprecated DB_NAME env var from docs 2025-03-24 11:58:53 +01:00
Marc Bulling f36d39e728 Added extended logging (#240), fixed bug that prevented setting Manage_Users API permission on new API key, added Manage_Logs API permission
* Added Manage_Logs API permission, added API endpoint to delete logs, added more logging, added filtering and deletion of logs in UI, fixed bug that prevented setting Manage_Users API permission on new API key
2025-03-21 15:06:17 +01:00
Remco Brink af5f46b2c6 Fix DuplicateFile setting hotlink on wrong file object (#246) 2025-03-17 13:11:16 +01:00
Marc Ole Bulling fe8a1216b9 Fixed sqlite bug for e2e reset 2025-02-25 20:51:01 +01:00
Marc Ole Bulling 472935bb33 Updated version numbers to clear cache 2025-02-05 14:25:25 +01:00
Marc Ole Bulling c445fd92db Fix email scope not being submitted #234, fix always being redirected after successful OIDC login 2025-02-05 12:28:34 +01:00
Marc Bulling d88f649209 Add support for multiple different users, rewrote API, breaking API changes, UI changes
* Require 1.9.6 for upgrade, add function to get userID from request

* Automatically add user when successfully authenticated with headers / oauth, disallow modifing own user permissions

* Dont show user/pw page when using header authentication

* Only display redacted versions of API keys #228, fixed deployment password

* Added animation for deleting API key

* Only create salt once

* Disable elements on upload UI if insufficient permissions

* BREAKING: User field must be email for OAUTH2, added warning in setup when changing database

* BREAKING: Added option to restrict to only registered users

* Fixed crash due to concurrent map iteration

* Replace /uploadComplete with API call, BREAKING API is now in headers

* BREAKING: require true|false instead of only checking for true

* BREAKING API: Renamed apiKeyToModify parameter to targetKey
2025-02-04 09:22:55 +01:00
Marc Ole Bulling e0c0dcc55c Reset edit modal on close #232 2025-01-31 17:15:38 +01:00