1.16.0
Version bump; the Unreleased section becomes 1.16.0: files on panel forms, checked, e-mailed to the company and never stored (forms.attachments, File field, streamed endpoint with the security wall and abort/timeout handling); attachments over SMTP and Microsoft Graph (upload session, mailbox copy deleted); test e-mail with a 10 MB file; Turnstile reset and BuilderForm honeypot fixes; Graph token cache. What projects must update: nothing required; to use files — option, File field, migration on Postgres/SQLite, formClasses keys, proxy body limit, Graph Mail.ReadWrite or SMTP. Verify on real systems: Graph 10 MB send and cleanup, Traefik timeout on a slow upload, SMTP size limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3cde9974d0
commit
7f0c2f9d72
+24
-4
@@ -8,7 +8,7 @@ versions at once, go through every "Requires project changes" section in order,
|
||||
version you have. A new release = a new section at the top; we remove the oldest ones only
|
||||
once there are more than 20.
|
||||
|
||||
## Unreleased
|
||||
## 1.16.0
|
||||
|
||||
### Added
|
||||
- **Files on forms, sent by e-mail and never stored** (`forms: { attachments: true }`, [forms.md](./forms.md) "Files").
|
||||
@@ -69,15 +69,35 @@ once there are more than 20.
|
||||
every send).
|
||||
|
||||
### What projects must update
|
||||
- **Nothing is required.** Without `forms.attachments` the forms config, collections and routes are unchanged.
|
||||
- **Nothing is required; existing forms need nothing.** Without `forms.attachments` the forms config, collections,
|
||||
routes and e-mails are unchanged, and a form without a File field behaves as before even with the option on.
|
||||
`pnpm ipal:skills` brings the updated `ipal-form` / `ipal-reference` skills.
|
||||
- **Import map:** no new admin component — `pnpm payload generate:importmap` changes nothing (running it is harmless).
|
||||
- To use files on forms: set `forms: { attachments: true }`, add a **File** field to the form (panel or seed), keep
|
||||
one e-mail with a fixed recipient on that form, run `pnpm generate:types`. **Postgres / SQLite:**
|
||||
`pnpm payload migrate:create` (the File block tables, three columns and one array table on submissions, the new
|
||||
Form messages columns — all additive). MongoDB: no migration.
|
||||
- Add the classes `file`, `help`, `fileList`, `fileItem`, `fileRemove` to `src/components/forms/formClasses.ts`
|
||||
(template in the `ipal-form` skill) and fill Form messages → Files for languages other than English and Polish.
|
||||
- Send the test e-mail with the 10 MB file once per site; with Microsoft Graph, grant `Mail.ReadWrite` limited to
|
||||
the forms mailbox, or keep files under 3 MB.
|
||||
- **Proxy body limit** ([deployment.md](./deployment.md) "Form files"): the browser posts up to `maxTotalMB`
|
||||
(10 MB) plus the answers to `/api/ipal/forms/submit`. Coolify's Traefik and Caddy have no body limit by default; an
|
||||
nginx in front needs `client_max_body_size 12m;`; Cloudflare (proxied) allows 100 MB. Keep `/api` out of the i18n
|
||||
proxy matcher (the default one does).
|
||||
- **Mail transport for files:** with Microsoft Graph, grant `Mail.ReadWrite` (application permission) limited to the
|
||||
forms mailbox with an application access policy ([email.md](./email.md)), **or** fill SMTP settings in Site
|
||||
integrations (files of 3 MB and more then go over SMTP), **or** accept a limit of about 2.8 MB per form. With SMTP
|
||||
only, nothing to grant — the mail server's own size limit applies. Send the test e-mail with the 10 MB file once
|
||||
per site.
|
||||
|
||||
### Verify on your real systems
|
||||
The plugin's tests use a mock of Microsoft Graph and a local mail sink; check these once on the real setup:
|
||||
- [ ] **Graph, 10 MB file:** a form submission with a 10 MB file arrives with the attachment; the sender mailbox keeps
|
||||
**no draft and no copy in Sent Items** a minute later, and no draft after a failed send either. Checklist:
|
||||
[email.md](./email.md) "Verify on the real tenant".
|
||||
- [ ] **Traefik timeout on a slow upload:** a 10 MB upload over a throttled connection (browser dev tools, "Slow 4G")
|
||||
finishes; if it is cut, raise the entry point's `respondingTimeouts.readTimeout`.
|
||||
- [ ] **SMTP size limit:** the test e-mail with the 10 MB file is accepted by the SMTP server (many limit a message to
|
||||
10–25 MB, and base64 adds a third); if not, lower `maxSizeMB` / `maxTotalMB` or use Graph.
|
||||
|
||||
## 1.15.5
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.15.5",
|
||||
"version": "1.16.0",
|
||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user