I’m looking for standard function which can parse body from multipart request. I received json and csv in one multipart request. How can I parse it?
Following example is received in one multipart request. Body received from request converted to string:
-----------------------------2469282126307371221439455
Content-Disposition: form-data; name="configuration"
Content-Type: application/csv
{
"attribute1": "value1",
"attribute2": "value2",
"attribute3": "value3"
}
-----------------------------2469282126307371221439455
Content-Disposition: form-data; name="file"; filename="Vieden.csv"
Content-Type: text/csv
date;value1;value2
2004-01-01 00:00:00;8;2
2004-01-01 01:00:00;7;5
2004-01-01 02:00:00;2;4
-----------------------------2469282126307371221439455--