AWS Lambda HTTP内容上的烧瓶超过10485760字节 [英] Flask on AWS Lambda HTTP content length exceeded 10485760 bytes

查看:69
本文介绍了AWS Lambda HTTP内容上的烧瓶超过10485760字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现我的flask应用程序在通过http表单上传时无法处理一定数量的文件大小:

I just figured out that my flask app cannot handle a certain amount of file size while uploading through an http form :

HTTP content length exceeded 10485760 bytes.

如何提高此限制?

推荐答案

您共享的大小限制类似于API网关,即10MB左右.(API网关限制)

The size limit shared by you looks like of API gateway i.e. around 10MB. (API Gateway limits)

AWS Lambda有效负载大小 limit 为6MB

AWS Lambda payload size limit is 6MB.

这两个限制均不能更改.我找不到ALB的任何限制,因此您可以考虑在应用程序中使用ALB.

Both of these limits cannot be changed. I was not able to find any limitations for ALB so you can think of using ALB in your application.

这篇关于AWS Lambda HTTP内容上的烧瓶超过10485760字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆