File: multipart.Rd

package info (click to toggle)
r-cran-curl 6.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,064 kB
  • sloc: ansic: 3,140; sh: 76; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/form.R
\name{multipart}
\alias{multipart}
\alias{form_file}
\alias{form_data}
\title{POST files or data}
\usage{
form_file(path, type = NULL, name = NULL)

form_data(value, type = NULL)
}
\arguments{
\item{path}{a string with a path to an existing file on disk}

\item{type}{MIME content-type of the file.}

\item{name}{a string with the file name to use for the upload}

\item{value}{a character or raw vector to post}
}
\description{
Build multipart form data elements. The \code{form_file} function uploads a
file. The \code{form_data} function allows for posting a string or raw vector
with a custom content-type.
}