Commit Graph

24 Commits

Author SHA1 Message Date
Marc Bulling 325849b94a Implementing guest upload / file requests (#337)
* Add API call to download files and optionally not increasing counter, added Download API permission

* Added option for presigned URLs and add download button in main menu

* Breaking: Check that chunks are at least 5MB

* Added docs

* A lot of refactoring and minor fixes
2026-01-26 16:23:07 +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 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 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 b14d9f9e51 Added tests and coverage to makefile, updated dependencies, added tests 2024-06-09 17:43:45 +02: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 0ccca6cf19 Refactoring, table now searchable when using E2E encryption #99 2023-04-14 15:35:26 +02: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 3abdf4df8e Fixed tests 2022-06-07 20:02:47 +02:00
Marc Ole Bulling 057709a794 Added Downloadcount #53, refactoring 2022-03-25 13:36:15 +01:00
Marc Ole Bulling 7f9037ff1f Updated to Go 1.18, removed debug log, added Go Version to --version output 2022-03-16 10:56:46 +01:00
Marc Ole Bulling 58c1e2aa56 Support for file encryption (#38) 2022-02-24 14:53:02 +01:00
Marc Ole Bulling f42faf8f53 Added option to disable upload and time limit during upload #13 2022-02-15 20:20:53 +01:00
Marc Ole Bulling 7ae36d1a52 Changed modulename to github.com/forceu/gokapi 2022-01-25 13:44:21 +01:00
Marc Ole Bulling 1b300a6691 Automated formatting for go1.17 2021-12-12 20:06:33 +01:00
Marc Ole Bulling a7888896f0 Added test tag requirement for unit tests, added minor tests 2021-06-24 13:34:53 +02:00
Marc Ole Bulling 884c2d94b5 Added AWS S3 support #14 2021-05-10 14:37:29 +02:00
Marc Ole Bulling d635d62268 Refactoring, enhancing unit tests 2021-04-30 12:46:36 +02:00