I am trying to use Serverless Functions and Spaces to handle multiple upload requests from browsers. It works when I upload a file size is less than 2097152 bytes, but an error message will be thrown if file size is larger than 2097152 bytes.
e.g. “Request larger than allowed: 3546372 > 2097152 bytes.”
Wanna to ask if possible to increase the file upload limit.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello @justinwong
When it comes to spaces these are the current limits:
Buckets have the following file size limits:
PUT requests can be at most 5 GB.
Each part of a multi-part upload can be at most 5 GB.
Each part of a multi-part upload must be at least 5 MiB, except for the final part.
Multi-part uploads can have at most 10,000 parts.
The maximum supported total size of a multi-part upload is 5 TB.
This means the error should not be related to Spaces limits. Would you mind sharing details about the function itself?
Regards