parse.multipart parses the result of a POST request that is in
a multi-part encoding. This is typically the case when a form is
"enctype='multipart/form-data'" property and
"file" input types.
Request interface object as defined by the FastRWeb
On success a named list of values in the form. Scalar values are
passed literally as strings, files (multi-part chunks) are passed as
lists with named elements
containing the content),
filename (name of the file as
specified in the encoding,if present) and
vector of content headers).
NULL with a warning.
The typical use is along the lines of:
if (grepl("^multipart", request$s.type)) pars <- parse.multipart()
The function uses warnings to communicate parsing issues. While
debugging, it may be usedful to convert then to errors via
options(warn=2) so they will be visigle on the client side.
The original parser code was written by Jeffrey Horner for the Rook package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.