| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/form.R |
| 3 |
\name{multipart} |
| 4 |
\alias{multipart} |
| 5 |
\alias{form_file} |
| 6 |
\alias{form_data} |
| 7 |
\title{POST files or data} |
| 8 |
\usage{ |
| 9 |
form_file(path, type = NULL, name = NULL) |
| 10 |
|
| 11 |
form_data(value, type = NULL) |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{path}{a string with a path to an existing file on disk} |
| 15 |
|
| 16 |
\item{type}{MIME content-type of the file.} |
| 17 |
|
| 18 |
\item{name}{a string with the file name to use for the upload} |
| 19 |
|
| 20 |
\item{value}{a character or raw vector to post} |
| 21 |
} |
| 22 |
\description{ |
| 23 |
Build multipart form data elements. The \code{form_file} function uploads a |
| 24 |
file. The \code{form_data} function allows for posting a string or raw vector |
| 25 |
with a custom content-type. |
| 26 |
} |