From c3b95832e5bfcd6772946d3969b77f443c642eb6 Mon Sep 17 00:00:00 2001 From: jiw-mh <130347006+jiw-mh@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:09:14 +0900 Subject: [PATCH] Add note to reduced response limit --- docs/use-cases/http/binary-requests-responses.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/use-cases/http/binary-requests-responses.mdx b/docs/use-cases/http/binary-requests-responses.mdx index d8e456a1c..dde904d08 100644 --- a/docs/use-cases/http/binary-requests-responses.mdx +++ b/docs/use-cases/http/binary-requests-responses.mdx @@ -24,4 +24,4 @@ provider: This will make API Gateway support binary file uploads and downloads, and Bref will automatically encode responses to base64 (which is what API Gateway expects for binary responses). -Be aware that the max upload and download size is **6MB**. For larger files, use AWS S3. An example is available in [Serverless Visually Explained](https://serverless-visually-explained.com/). +Be aware that the max upload and download size is **6MB** and because [base64 encoding adds a ~33% overhead](https://en.wikipedia.org/wiki/Base64) to the response, downloads are limited to ~4.5MB in size. For larger files, use AWS S3. An example is available in [Serverless Visually Explained](https://serverless-visually-explained.com/).