Mar-08-2018, 10:32 AM
I am working on developing an AWS Lambda function in python. This function is behind AWS API Gateway.
I upload two files from the URL and in lambda function I get event data as below.
I need help how to parse this response and save the two files in S3.
----------------------------124218046032878137249340
Content-Disposition: form-data; name="file1"; filename="2.csv"
Content-Type: text/csv
header,value
a,1
b,2
----------------------------124218046032878137249340
Content-Disposition: form-data; name="file2"; filename="1.txt"
Content-Type: text/plain
aa
bb
cc
----------------------------124218046032878137249340--
I upload two files from the URL and in lambda function I get event data as below.
I need help how to parse this response and save the two files in S3.
----------------------------124218046032878137249340
Content-Disposition: form-data; name="file1"; filename="2.csv"
Content-Type: text/csv
header,value
a,1
b,2
----------------------------124218046032878137249340
Content-Disposition: form-data; name="file2"; filename="1.txt"
Content-Type: text/plain
aa
bb
cc
----------------------------124218046032878137249340--