2bf130105e5cc7d42ee79af4b81a9792fb188cf7
Next 16 caps any request body that flows through middleware at 10MB by default. Our auth middleware matches every path, so /jobs/:id POSTs from the file upload form hit 'Request body exceeded 10MB / Unexpected end of form' the moment a user picked anything bigger than ~10MB total — the server action never even ran. serverActions.bodySizeLimit alone isn't enough; the new middlewareClientMaxBodySize knob (Next 16) is the one that gates middleware-handled bodies. Set both to 100mb so the 30MB-per-file bucket limit is what actually matters. The key isn't in NextConfig's TS types yet (Next 16.1), so it's assigned via a narrow cast on the side rather than dropped into the object literal. Also added console.log/error breadcrumbs to uploadJobFilesAction so the next mystery upload failure shows up in the dev server log immediately instead of silently bouncing back as 'Bağlantı hatası'.
Description
No description provided
Languages
TypeScript
99.2%
CSS
0.7%