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.

I have an image-upload Serverless Function that accepts a file (image) to upload to a Spaces Bucket. The function is called from an Anguular client app. The function works well for image files less than 1MB. Trying to submit a file larger than 1MB, I get these errors back:
image-upload.service.ts:102 POST https://faas-fra1-afec6ce7.doserverless.co/api/v1/web/fn-d2086534-a6e4-42a4-95ce-cf3fd0d24652/app/upload-image net::ERR_FAILED 413 (Payload Too Large)
When this happens, there is another CORS error that comes along:
Access to XMLHttpRequest at 'https://faas-fra1-afec6ce7.doserverless.co/api/v1/web/fn-d2086534-a6e4-42a4-95ce-cf3fd0d24652/app/upload-image' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
These only occur for files larger than 1MB, even though the documentation mentions a limit of 5MB.
Please advise. Thanks!
Joel Marano
Prince7hakur
georgetsertsvadze97
rtoddmorse
Kishore K
ThomasV
nwmarsh1992
Tushar Kumar Shaha
Tushar Kumar Shaha
andkoval
717d4f2de46d41c5bcc100214e9b21