parseMultiPartFormData(
x = c(
"------WebKitFormBoundaryfBloeH49iOmYtO5A",
"Content-Disposition: form-data; name=\"form_name\"",
"",
"Example",
"------WebKitFormBoundaryfBloeH49iOmYtO5A",
"Content-Disposition: form-data; name=\"form_id\"",
"",
"test",
"------WebKitFormBoundaryfBloeH49iOmYtO5A",
"Content-Disposition: form-data; name=\"desktop_file\"; filename=\"limit_type.csv\"",
"Content-Type: text/csv",
"",
"limit_type",
"Aggregate",
"Occurrence",
"------WebKitFormBoundaryfBloeH49iOmYtO5A--"
),
boundary = parseContentTypeHeader(
"multipart/form-data; boundary=----WebKitFormBoundaryfBloeH49iOmYtO5A")[['boundary']]
)
Run the code above in your browser using DataLab