parseMultiPartFormData {webdeveloper} | R Documentation |
Parse multi-part form data
Description
Parse multi-part form data
Usage
parseMultiPartFormData(x, boundary)
Arguments
x |
A vector. |
boundary |
A string, the boundary used for the multi-part form data |
Value
A named list.
Examples
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']]
)
[Package webdeveloper version 1.0.5 Index]