fix: harden Web image admission

This commit is contained in:
Tianyi Cui
2026-07-30 01:58:36 +08:00
parent d6c82001b3
commit 515d48875e
52 changed files with 999 additions and 444 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ class TestAttachmentStore extends AttachmentStore {
mediaTypes: ['image/png'],
}
validateImage(_input: SaveImageAttachment): void {
throw new Error('test invariant attachment store does not validate images')
validateImage(_input: SaveImageAttachment): Promise<void> {
return Promise.reject(new Error('test invariant attachment store does not validate images'))
}
saveImage(_input: SaveImageAttachment): Promise<ImageAttachmentRef> {