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:
co-authored by
Claude Fable 5.2
parent
02b1e96d3d
commit
701bb420c1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user