Python Forum
parsing mutipart form data in Lambda
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parsing mutipart form data in Lambda
#1
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--
Reply


Messages In This Thread
parsing mutipart form data in Lambda - by v71017 - Mar-08-2018, 10:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading an ASCII text file and parsing data... oradba4u 2 1,394 Jun-08-2024, 12:41 AM
Last Post: oradba4u
  Sending data from the form to DB quisatz 5 3,977 Sep-27-2023, 04:58 PM
Last Post: quisatz
Video doing data treatment on a file import-parsing a variable EmBeck87 15 5,563 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
  Unable to request image from FORM Data usman 0 1,441 Aug-18-2022, 06:23 PM
Last Post: usman
  json api data parsing elvis 0 1,341 Apr-21-2022, 11:59 PM
Last Post: elvis
  Modify values in XML file by data from text file (without parsing) Paqqno 2 3,105 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  I need help parsing through data and creating a database using beautiful soup username369 1 2,288 Sep-22-2021, 08:45 PM
Last Post: Larz60+
  Problem: Retrieving Form data PythonDev 3 4,189 Oct-16-2020, 02:09 AM
Last Post: PythonDev
  Write lambda function in pyhhon to coy data from multiple JSON into a single JSON fil anandmn85 2 5,092 Apr-19-2018, 05:56 AM
Last Post: anandmn85
  how to parse multipart/form-data for xls or jpeg stream into python code and store v71017 0 3,875 Mar-20-2018, 01:09 PM
Last Post: v71017

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020