Commit Graph

113 Commits

Author SHA1 Message Date
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 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 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 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 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 6fb77d102a
refactor: add logic to find any unpinned files of a child manifest if the root is pinned but the children aren't 2024-03-05 16:27:29 -05:00
Derrick Hammer caac09cc6f
feat: add CtxAborted and use in account pin 2024-03-05 13:41:47 -05:00
Derrick Hammer fdfffb897c
fix: if not a manifest, call pinEntity directly 2024-03-05 12:41:28 -05:00
Derrick Hammer a5c1356847
fix: don't rely on content length, but do a basic heuristic by reading 1 byte past the max upload, if if we haven't hit the limit and the sizes don't match, then error, but otherwise take an optimistic stance 2024-03-05 12:38:41 -05:00
Derrick Hammer c6feee1351
fix: check if entry returns nil 2024-03-03 11:29:37 -05:00
Derrick Hammer 73623b8c36
fix: add CIDTypeDirectory to isCidManifest 2024-03-03 10:43:01 -05:00
Derrick Hammer f20b4ee916
fix: update usage of GetCachedStorageLocations 2024-03-03 09:33:21 -05:00
Derrick Hammer 201c9b992f
fix: need to deref r to replace it 2024-03-03 07:17:46 -05:00
Derrick Hammer 9d25784a6e
fix: we need to pin the files after upload 2024-03-03 06:50:24 -05:00
Derrick Hammer d2c9f8e38a
fix: strip out any port 2024-03-03 06:40:50 -05:00
Derrick Hammer b03af65418
fix: need to manually cast errorPages to webappErrorPages 2024-03-03 05:24:03 -05:00
Derrick Hammer 3d55254916
fix: update use of webApp.Paths 2024-03-03 03:41:30 -05:00
Derrick Hammer 37514a742f
fix: errorFiles is really errorPages 2024-03-03 03:03:15 -05:00