Commit Graph

1303 Commits

Author SHA1 Message Date
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 8e9d2d0398
refactor: switch to github.com/gabriel-vasile/mimetype 2024-03-29 11:51:58 -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 5ad1aaeb6a
refactor: pass mimetype to tus upload record and check a list of meta fields for it 2024-03-29 00:47:33 -04:00
Derrick Hammer 9d259925f8
dep: update dashboard 2024-03-29 00:19:23 -04:00
Derrick Hammer 277c3ff23f
dep: update dashboard 2024-03-28 23:40:01 -04:00
Derrick Hammer 161d71bfda
dep: update dashboard 2024-03-28 22:53:25 -04:00
Derrick Hammer bb41d70c10
fix: UploadExists check needs to be before UploadCompleted call 2024-03-28 22:35:05 -04:00
Derrick Hammer 82532b01eb
fix: use lock on CompleteUploads 2024-03-28 22:18:45 -04:00
Derrick Hammer 9254dc20c8
fix: use decodedHash.HashBytes() 2024-03-28 21:48:13 -04:00
Derrick Hammer fffe769ccf
fix: use mapKey as a string 2024-03-28 21:47:48 -04:00
Derrick Hammer 775d3f7e6f
fix: bad mapKey typing 2024-03-28 21:42:12 -04:00
Derrick Hammer 0679a7cc3b
refactor: add a sync.Map, and lock parallel uploads in a mutex keyed by the hash and tus upload id, check if it already exists, and if so, abort. 2024-03-28 21:20:44 -04:00
Derrick Hammer 0f1360c6df
dep: update dashboard 2024-03-28 20:41:39 -04:00
Derrick Hammer cb6ba5a24b
fix: remove PinByHash logic 2024-03-28 18:31:40 -04:00
Derrick Hammer d810cf0848
fix: don't error if IsFinal 2024-03-28 18:08:13 -04:00
Derrick Hammer a16390ccc1
refactor: add tus uploads to the pins response 2024-03-28 17:52:01 -04:00
Derrick Hammer a54238d4b6
feat: add TusHandler::Uploads 2024-03-28 17:43:32 -04:00
Derrick Hammer b267ace017
fix: ignore exists check if we are in partial/parallel upload mode 2024-03-28 17:41:17 -04:00
Derrick Hammer 90c8ce39eb
dep: update dashboard 2024-03-28 17:20:17 -04:00
Derrick Hammer 76b8def51d
dep: update dashboard 2024-03-28 16:56:33 -04:00
Derrick Hammer 87477ad559
dep: update dashboard 2024-03-28 16:31:40 -04:00
Derrick Hammer 804f32e2be
dep: update dashboard 2024-03-28 16:20:08 -04:00
Derrick Hammer af5c7dc40d
dep: update dashboard 2024-03-28 15:45:11 -04:00
Derrick Hammer 12caef5f9b
dep: update dashboard 2024-03-28 10:01:45 -04:00
Derrick Hammer d078999108
dep: update portal-sdk 2024-03-28 00:02:35 -04:00
Derrick Hammer 3331f1b1c1
refactor: update progress logic 2024-03-26 23:40:11 -04:00
Derrick Hammer 6a9eede07d
fix: invert check 2024-03-26 23:31:17 -04:00
Derrick Hammer 989ed70265
fix: client does not return ErrBucketNotFound, only the string error 2024-03-26 23:14:50 -04:00
Derrick Hammer d03a781e18
fix: correct checking the download size based on LimitedReader 2024-03-26 22:46:06 -04:00
Derrick Hammer 48da5d3fd4
Revert "chore: temp disable email verification for testing"
This reverts commit f6b28b0ee0.
2024-03-26 20:40:26 -04:00
Derrick Hammer 7ba826490e
dep: update dashboard 2024-03-26 20:33:15 -04:00
Derrick Hammer 0a5e52ec16
refactor: use ErrKeySecurityInvalidToken 2024-03-26 20:26:59 -04:00
Derrick Hammer adc5bc213e
Revert "fix: add error for email verification"
This reverts commit ea5a97c6
2024-03-26 20:24:55 -04:00
Derrick Hammer 501de26793
fix: update error 2024-03-26 20:22:53 -04:00
Derrick Hammer 5a9f4a5940
fix: don't pass db error 2024-03-26 20:21:34 -04:00
Derrick Hammer ea5a97c613
fix: add error for email verification 2024-03-26 20:19:38 -04:00
Derrick Hammer 64eea68a84
fix: if user is already verified, abort 2024-03-26 20:17:41 -04:00
Derrick Hammer 12a9ad28fd
fix: check if email or token is empty 2024-03-26 17:04:16 -04:00
Derrick Hammer 4c2baf164f
fix: bad verify url, remove email query var 2024-03-26 16:49:53 -04:00
Derrick Hammer d40a954b67
fix: add required to AccountInfoResponse 2024-03-26 16:44:03 -04:00
Derrick Hammer c2d4ea7847
refactor: add verified to account info 2024-03-26 16:43:43 -04:00
Derrick Hammer 23f462773f
fix: add cors route for /api/account/verify-email/resend 2024-03-26 16:38:51 -04:00
Derrick Hammer cf83dc6767
refactor: switch to a verification link 2024-03-26 15:12:31 -04:00
Derrick Hammer 90cdcd16af
fix: put verify-email behind auth 2024-03-26 15:03:56 -04:00
Derrick Hammer ccf1707f11
feat: add /api/account/verify-email/resend route 2024-03-26 15:03:20 -04:00
Derrick Hammer 98c576e2e8
refactor: update SendEmailVerification to take a user id and look it up 2024-03-26 15:00:29 -04:00
Derrick Hammer 6d12ef9b94
Revert "fix: send, echo, and remove a copy of the cookie without the domain to try and work better with localhost"
This reverts commit ad23104700.
2024-03-26 11:23:20 -04:00
Derrick Hammer ad23104700
fix: send, echo, and remove a copy of the cookie without the domain to try and work better with localhost 2024-03-26 11:04:15 -04:00