Commit Graph

39 Commits

Author SHA1 Message Date
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
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
Marc Ole Bulling fe8a1216b9 Fixed sqlite bug for e2e reset 2025-02-25 20:51:01 +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 c167e752f3 Add API call and GUI option to replace content of files, API returns 404 on invalid file IDs, better handling for E2E errors 2024-12-15 17:07:29 +01:00
Marc Ole Bulling 53d27c2889 Make /uploadComplete non blocking (#224), added /files/list/{id} API call, changed UploadStatus from database to in-memory, internal WebUI calls return 401 if unauthorised, make specific-test verbose 2024-12-14 13:24:23 +01:00
Marc Ole Bulling 61a8c8d6fa Refactoring, added comments 2024-12-12 17:35:37 +01:00
Marc Ole Bulling ed8d476f3c Change download count atomically to prevent race condition (#223) 2024-12-12 17:02:31 +01:00
Marc Ole Bulling 5a2c097460 Fixed upgrade process 2024-12-08 16:19:27 +01:00
Marc Ole Bulling 1e43148ab6 Fix for #216, updated versions and go build 2024-12-08 16:05:48 +01:00
Marc Ole Bulling be589fc758 Always recreate API key table in sqlite #215 2024-12-07 13:48:23 +01:00
Marc Ole Bulling 6f582b25d8 Store upload defaults locally (#214), breaking API changes 2024-12-06 14:36:08 +01:00
Marc Ole Bulling ddc72b0a98 Use API for most of UI interactions with an internal API key (#211), breaking API changes
* Changed color of API procressing status

* Added internal system key, use system key for API page perm changes, BREAKING: removed session auth

* API: Added /auth/delete, added option to include basic parameters in /auth/create, migrated API overview page completely to use API calls

* Added toast in API menu for clipboard, removed reference to session authentication in documentation

* Changed delete button in upload menu to API call, fixed modify API call in menu #210

* Set Api key in API menu for changing permissions, renamed title for Deleting Uploads permission, refactoring

* Added tests, refactoring
2024-12-05 13:55:11 +01:00
Marc Ole Bulling 94def515ca Added tests, changed version number 2024-07-15 13:30:28 +02:00
Marc Ole Bulling e704904ed1 Updated version numbers 2024-07-12 19:52:24 +02:00
Marc Ole Bulling e0741c86c0 Fixed SQLite update #189 2024-07-12 19:47:06 +02:00
Marc Ole Bulling f909db076f Have seperate Database schema version, do not run upgrade when initiating database 2024-07-12 19:15:58 +02:00
Marc Ole Bulling b56970bf88 Add Redis support / make database location and provider selectable in setup (#180) 2024-07-07 22:13:51 +02:00
Marc Ole Bulling f7ba24913d Added tests, fixed typo 2024-06-15 22:51:20 +02:00
Marc Ole Bulling 933ad58f81 Removed legacy DB upgrade option, added tests
-
2024-06-10 16:35:16 +02:00
Marc Ole Bulling 7fef0450bc Updated makefile, added tests, remove lastupdate database entry for uploadstatus 2024-06-09 19:33:23 +02:00
Marc Ole Bulling b14d9f9e51 Added tests and coverage to makefile, updated dependencies, added tests 2024-06-09 17:43:45 +02:00
Marc Ole Bulling 98e20beaff Replaced SSE library with own code 2024-06-09 15:27:23 +02:00
Marc Ole Bulling 839de59cf5 Add cleanup for orphaned hotlinks, add/remove hotlinks on edit #136 2024-02-07 16:05:38 +01:00
Marc Ole Bulling 9131355e18 Added test, updated documentation dependencies to fix readthedocs-sphinx-search vulnerability 2024-01-16 21:25:16 +01:00
Marc Ole Bulling d24ea9735a Fixed tests 2023-11-28 14:20:33 +01:00
Marc Ole Bulling c68afacaa5 Added permission model for API keys #79, replaced button text with icons 2023-11-28 13:47:51 +01:00
Marc Ole Bulling b0e44d2036 Add minimum spacing for Action column in admin menu #98, added comment 2023-11-27 23:12:39 +01:00
Marc Ole Bulling 82d6af3578 Further reduced parallel connections for db testing 2023-11-22 13:24:46 +01:00
Marc Ole Bulling 2a71f434d5 Reduced parallel connections for database test 2023-11-22 13:22:34 +01:00
Marc Ole Bulling 06e934daa0 Added tests, removed file data for e2e config from database 2023-11-22 13:19:18 +01:00
Marc Ole Bulling 1d0bde6644 Changed to sqlite, dropped Windows 32bit support, fixed data dir env not being persistant #115, updated readme 2023-11-21 20:50:30 +01:00
Marc Ole Bulling 246b3f5edc Upload status display is now handled natively with SSE instead of the Dropzone object. #26 #85
Protected URLs are generated to the documentation with go:generate automatically
2023-04-03 02:08:17 +02:00
Marc Ole Bulling 9c9ea6dbb7 Add end-to-end encryption (#71)
* Added WASM module for e2e

* Added cmd util to read database

* Changed to go 1.19

* Fixed crash with random string generator

* Fixed typos and tests

* Host service worker on github
2022-08-11 13:37:55 +02:00
Marc Ole Bulling 3ea8e22042 Added comments, fixed tests 2022-07-27 14:08:17 +02:00
Marc Ole Bulling 44260f012b Use chunked uploads instead of single upload (#68)
* Change to chunked uploads

* Renamed SHA256 attribute to SHA1

* Breaking: removed /upload endpoint

* Changed timeout to 15 minutes for reading

* Change session key only after 12 hours

* Added API calls for chunk upload, refactoring, added tests

* Add content-type based on file extension for images if empty
2022-07-25 13:21:38 +02:00
Marc Ole Bulling 803016af3c Fixed hotlink not being generated for uploads through API with unlimited storage time 2022-06-11 17:35:21 +02:00
Marc Ole Bulling 376d0b0f35 Fixed comments 2022-03-16 18:35:17 +01:00
Marc Ole Bulling a72236ab70 Refactor: Rename datastorage to database 2022-03-16 18:31:55 +01:00