Collection data in pages, and fixes for public forms
GET /api/collections/data/:slug can now return one page at a time, and public form uploads, retries, approvals and the View submission dialog are fixed.
Added
1- CollectionsGET /api/collections/data/:slug now takes $page and $limit beside latest or version, each a whole number from 1 to 100,000. Before, both were refused with 400. With either, the answer is one page, newest record first as in the full answer, and $limit is capped at 500. $page alone gives pages of 100, and $limit alone gives the first page. The answer keeps its shape: the records in docs, with totalDocs, totalPages and hasNextPage. A call with neither still returns every record, so the published SDK reads as before.
Fixed
4- FormsFile uploads to a public form, through POST /api/forms/public/:orgId/:formId/uploads, now have limits of their own. When the form sets Most submissions per day, a field's uploads may number three times that limit times the field's file count, counted apart so they never use up the submissions. One address may also reserve, each hour, three submissions' worth of a field's files at its size limit. Past either, the route answers 429 Too many uploads. Please try again later. An upload holds your storage before the form is sent, so before this a stranger could use up your storage allowance.
- FormsA public form submission that fails partway, on an upload that cannot be attached or a save that fails, no longer blocks the visitor's identical retry. Before, that retry within ten minutes got the success answer a repeat gets, and nothing was stored.
- FormsApproving a submission held for review now releases it once. Before, two approvals at the same moment both went through, so form.submitted and collection.record_created fired twice, along with any workflow or webhook listening for them. The second approval now answers 409 This submission is not waiting for review.
- ConsoleThe View submission dialog on a form now shows any value. Before, one empty (null) answer, which a public form accepts, broke the whole form page. A file answer now shows the file's name with Open, as the records table does, instead of raw JSON, and the dialog fits a 360 px phone screen.