Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

How do I increase the Maximum Payload Size that a POST request can receive in a NodeJS App running on the App Platform? If this was on Nginx, I would increase the client_max_body_size. How do I do this in an App on Digital Ocean?
I successfully deployed a SvelteKit app on the App Platform. SvelteKit provides API routes as well as frontend pages. I am sending an image from a frontend page to an API route:
Frontend code:
const imageData = canvas.toDataURL(‘image/png’); const response = await fetch(‘/api/imageTextDetection’, { method: ‘POST’, headers: { ‘Content-Type’: ‘text/plain’ }, body: imageData });
Server Code:
export const POST: RequestHandler = (async ({ request }) => { const imageData: string = await request.text(); … }
In the Browser, I am getting the following error message:
POST https://**** 413 (Payload Too Large) Error sending image to server: Error: Server responded with an error
When running the application locally, this is not giving me any error.
a6309a057c3f4cb38fb2e7feb67236
KFSys
ef1ed44cc2154be3bcbb2d727878f8
Devs Neonetworks
1e6b823ea20d4cb189a34a922f5588
Telmo Valverde
erik-jan martens
Henry Mui
anthonycarreon
garantieheld
Marin