Commit Graph

24 Commits

Author SHA1 Message Date
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 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 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
Jakub
14d6448c57 Change hotlink URL to be shorter (#253) 2025-04-21 00:13:45 +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 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
34873b5680 Split JS into multiple files for better maintenance, changed version number 2024-12-18 15:31:12 +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
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
6beabdebc3 Added option to display filenames in URL (#171), breaking API changes, refactoring, update OpenAPI 2024-06-08 21:52:14 +02:00
Marc Ole Bulling
9641e2828d Added /auth/create API endpoint #133, fixed wrong openapi schemes, added examples to openapi 2024-02-07 14:34:41 +01:00
Marc Ole Bulling
c88c9f8421 Updated API documentation, changed Go Build to 1.21 2023-12-09 13:55:31 +01:00
Marc Ole Bulling
a130357018 Added feature for editing uploaded files #103, updated Bootstrap to 5.3 2023-11-29 20:45:27 +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
74b5d3572a Updated OpenApi specs, fixed test 2022-12-14 23:14:06 +01: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
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
5bb338f91c Breaking: Make API output less verbose #63, fixed hotlink not working with "duplicate" API call, added option to change filename with duplicate API call 2022-07-15 02:29:49 +02:00
Marc Ole Bulling
7927e462e0 Added API call to duplicate existing files #66 2022-07-11 16:25:00 +02:00
Marc Ole Bulling
43a3a67906 Fixed API to work with unlimited downloads and unlimited time #46 2022-02-26 20:52:53 +01:00
Marc Ole Bulling
e6c3cfdc68 Final release v1.2.0 2021-05-07 16:53:41 +02:00
Marc Ole Bulling
91ca09ac03 Finished API and API documentation 2021-05-07 16:07:48 +02:00