WIP: form attachments — unit tests, test e-mail with attachment, lint

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 16:28:22 +01:00
co-authored by Claude Fable 5.2
parent 02b1e96d3d
commit 701bb420c1
16 changed files with 302 additions and 35 deletions
+2 -2
View File
@@ -56,14 +56,14 @@ export type FormAttachmentsOption = {
* A thrown error refuses the file too.
*/
scan?: (file: FormFileScanInput) => FormFileScanResult | Promise<FormFileScanResult>
/** Refuse PDFs that declare JavaScript, launch actions or embedded files (a byte search). Default false. */
strictPdf?: boolean
/**
* The submit endpoint's gates — the same options createSubmitAction takes,
* so both paths behave alike. `allowedOrigins`: other origins that may post
* to it (a front end on another domain); the site's own origin always may.
*/
submit?: FormSubmitEndpointOptions
/** Refuse PDFs that declare JavaScript, launch actions or embedded files (a byte search). Default false. */
strictPdf?: boolean
}
export type FormSubmitEndpointOptions = {