mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
형식이 잘못된 세션 쿠키로 인해 서버 오류가 발생하던 문제와 업로드 중 오류가 무시되거나 무한히 대기하던 문제 등 버그 수정
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bb0328b39e
commit
9119c21881
11 files changed
+161
-77
No files matched your search
+22
-18
@@ -13,24 +13,28 @@ import {
|
||||
const uploadRouter = router({
|
||||
startFileUpload: roleProcedure["activeClient"]
|
||||
.input(
|
||||
z.object({
|
||||
chunks: IdSchema,
|
||||
parent: DirectoryIdSchema,
|
||||
mekVersion: IdSchema,
|
||||
dek: Base64Schema,
|
||||
dekVersion: z.date(),
|
||||
hskVersion: IdSchema.optional(),
|
||||
contentType: z
|
||||
.string()
|
||||
.trim()
|
||||
.nonempty()
|
||||
.refine((value) => mime.getExtension(value) !== null),
|
||||
...EncryptedNameSchema,
|
||||
createdAt: Base64Schema.optional(),
|
||||
createdAtIv: Base64Schema.optional(),
|
||||
lastModifiedAt: Base64Schema,
|
||||
lastModifiedAtIv: Base64Schema,
|
||||
}),
|
||||
z
|
||||
.object({
|
||||
chunks: IdSchema,
|
||||
parent: DirectoryIdSchema,
|
||||
mekVersion: IdSchema,
|
||||
dek: Base64Schema,
|
||||
dekVersion: z.date(),
|
||||
hskVersion: IdSchema.optional(),
|
||||
contentType: z
|
||||
.string()
|
||||
.trim()
|
||||
.nonempty()
|
||||
.refine((value) => mime.getExtension(value) !== null),
|
||||
...EncryptedNameSchema,
|
||||
createdAt: Base64Schema.optional(),
|
||||
createdAtIv: Base64Schema.optional(),
|
||||
lastModifiedAt: Base64Schema,
|
||||
lastModifiedAtIv: Base64Schema,
|
||||
})
|
||||
.refine(({ createdAt, createdAtIv }) => !createdAt === !createdAtIv, {
|
||||
message: "createdAt and createdAtIv must be provided together",
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ ctx, input }) => {
|
||||
return await UploadService.startFileUpload({
|
||||
|
||||
Reference in new issue
Block a user