Derrick Hammer
|
8ccd90825b
|
fix: wrong error handling
|
2024-03-29 12:28:46 -04:00 |
Derrick Hammer
|
09c9ab8614
|
refactor: if no db mimetype, manually use mimetype.DetectReader, and if none found fall back to application/octet-stream
|
2024-03-29 11:56:30 -04:00 |
Derrick Hammer
|
aeba225c87
|
fix: only set the Content-Type header if we actually have a mime type, else let ServeContent detect it.
|
2024-03-29 00:49:54 -04:00 |
Derrick Hammer
|
cb6ba5a24b
|
fix: remove PinByHash logic
|
2024-03-28 18:31:40 -04:00 |
Derrick Hammer
|
a16390ccc1
|
refactor: add tus uploads to the pins response
|
2024-03-28 17:52:01 -04:00 |
Derrick Hammer
|
3331f1b1c1
|
refactor: update progress logic
|
2024-03-26 23:40:11 -04:00 |
Derrick Hammer
|
d03a781e18
|
fix: correct checking the download size based on LimitedReader
|
2024-03-26 22:46:06 -04:00 |
Derrick Hammer
|
f6be51b942
|
refactor: move away from a granular tracking to a simpler, stage based tracking
|
2024-03-23 10:43:18 -04:00 |
Derrick Hammer
|
f2c68857f2
|
refactor: fix pinning logic if file exists
|
2024-03-22 20:31:44 -04:00 |
Derrick Hammer
|
e3022b8587
|
fix: skipExisting should be false
|
2024-03-22 19:19:31 -04:00 |
Derrick Hammer
|
085c4d69d6
|
fix: add cors to pin api
|
2024-03-22 18:47:41 -04:00 |
Derrick Hammer
|
5b2a86275f
|
refactor: if the user has the file pinned and no import exists, assume a completed status
|
2024-03-22 18:30:02 -04:00 |
Derrick Hammer
|
0a85711ead
|
feat: implement /s5/pin/:cid/status
|
2024-03-22 18:01:12 -04:00 |
Derrick Hammer
|
7696997e53
|
refactor: implement import reader in s5 pinning
|
2024-03-22 17:39:17 -04:00 |
Derrick Hammer
|
755aff15da
|
feat: add pinned_at field to account pins
|
2024-03-21 16:28:48 -04:00 |
Derrick Hammer
|
62867f26a9
|
refactor: use CIDFromHash and extract the hash
|
2024-03-21 15:57:05 -04:00 |
Derrick Hammer
|
a48b10e50c
|
fix: we aren't pinning small files after uploading
|
2024-03-21 15:50:11 -04:00 |
Derrick Hammer
|
a8f62fd666
|
refactor: add option to SaveUpload so we have the option not to change an upload record if we are uploading or importing a file
|
2024-03-21 15:46:02 -04:00 |
Derrick Hammer
|
8bf4887dae
|
fix: add GET and DELETE to cors
|
2024-03-21 14:58:26 -04:00 |
Derrick Hammer
|
3e3f539a8b
|
refactor: change cookie approach to broadcast cookies across all protocols based on the root domain, so they can be shared.
|
2024-03-21 14:54:17 -04:00 |
Derrick Hammer
|
a289828c6f
|
fix: add cors to /s5/account/pins
|
2024-03-21 14:39:06 -04:00 |
Derrick Hammer
|
d895d047b3
|
refactor: add upload size to account pin response
|
2024-03-21 12:35:45 -04:00 |
Derrick Hammer
|
abec1877cd
|
fix: set hash and mime_type as required
|
2024-03-21 11:01:03 -04:00 |
Derrick Hammer
|
4dec430c69
|
fix: set pins as required
|
2024-03-21 10:54:15 -04:00 |
Derrick Hammer
|
7ed63d94cc
|
refactor: add proxy middleware to add routes
|
2024-03-19 15:40:03 -04:00 |
Derrick Hammer
|
c667c9509c
|
refactor: update cors options handling for S5
|
2024-03-19 15:37:38 -04:00 |
Derrick Hammer
|
b2b6102216
|
fix: add Content-Type to tus cors allowed headers
|
2024-03-18 18:13:24 -04:00 |
Derrick Hammer
|
fd53b98633
|
fix: allow Upload-Metadata in cors
|
2024-03-18 15:53:40 -04:00 |
Derrick Hammer
|
5b8a7f79f0
|
fix: use AllowOriginFunc in tus
|
2024-03-18 15:45:29 -04:00 |
Derrick Hammer
|
228cabd83b
|
fix: cid needs to be lowercase
|
2024-03-18 14:26:45 -04:00 |
Derrick Hammer
|
99d47a4d9c
|
fix: need to enable AllowCredentials
|
2024-03-18 14:19:34 -04:00 |
Derrick Hammer
|
6b51e7196c
|
fix: need to whitelist Authorization and Content-Type headers
|
2024-03-18 14:16:04 -04:00 |
Derrick Hammer
|
dcab0b46cd
|
fix: upload cors does not support wildcard methods
|
2024-03-18 14:13:40 -04:00 |
Derrick Hammer
|
65278cb046
|
fix: add options routes for basic upload
|
2024-03-18 14:06:58 -04:00 |
Derrick Hammer
|
c68dc51732
|
refactor: add cors mw for uploads
|
2024-03-18 13:39:50 -04:00 |
Derrick Hammer
|
9306051812
|
fix: use account.SetAuthCookie
|
2024-03-17 09:18:31 -04:00 |
Derrick Hammer
|
4bd2b028b7
|
chore: remove local setAuthCookie
|
2024-03-17 09:10:14 -04:00 |
Derrick Hammer
|
107118febc
|
refactor: switch to account.SetAuthCookie
|
2024-03-17 09:09:57 -04:00 |
Derrick Hammer
|
9a899317c1
|
refactor: implement Domain and AuthTokenName
|
2024-03-17 09:02:48 -04:00 |
Derrick Hammer
|
971c72ada9
|
fix: add 401 status code
|
2024-03-16 11:37:42 -04:00 |
Derrick Hammer
|
f558d87b36
|
fix: update /s5/account/pins response
|
2024-03-16 11:36:38 -04:00 |
Derrick Hammer
|
ccae147398
|
feat: implement a basic account pins json api without paging
|
2024-03-16 11:14:06 -04:00 |
Derrick Hammer
|
8a2f501e8e
|
refactor: rename accountPins to accountPinsBinary
|
2024-03-16 11:00:27 -04:00 |
Derrick Hammer
|
06f37bf3d8
|
refactor: add 415 response to /s5/metadata
|
2024-03-12 11:23:15 -04:00 |
Derrick Hammer
|
a1014acf15
|
refactor: use StatusUnsupportedMediaType
|
2024-03-12 11:21:25 -04:00 |
Derrick Hammer
|
d5782c7e86
|
fix: bad error message
|
2024-03-12 07:00:57 -04:00 |
Derrick Hammer
|
6c60dae743
|
fix: if the render end is 0, ensure the range header is valid syntax and skip it
|
2024-03-10 11:53:24 -04:00 |
Derrick Hammer
|
1f1f204b35
|
fix: only return noop is we are SeekStart and want the beginning, otherwise this is likely actually needing to start a partial content seek
|
2024-03-09 17:46:18 -05:00 |
Derrick Hammer
|
0c90924f31
|
refactor: add checking tus for metadata before uploads
|
2024-03-09 15:37:58 -05:00 |
Derrick Hammer
|
4020b9f7c7
|
fix: S5File::Exists needs to check tus before uploads
|
2024-03-09 14:27:07 -05:00 |