简体   繁体   中英

How do you parse multipart/form-data in a Python lambda function?

I cant find a good example anywhere of how to parse a multipart/form-data request in a lambda function using Python.

I have found examples that use libraries in a server example such as flask but they do not work with lambda.

Does anyone know how to parse the multipart/form-data using a Python lambda?

I also had the chance to convert some APIs into Lambda functions and had the situation for uploading a profile picture. But found out that Lambda's event request body has limit of 128KB. So, basically Lambda has its own limitations for specific operation to maintain its performance.

So, uploading the image to S3 bucket via client was only option. For reference please check the AWS official link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM