multipart

0th

Percentile

POST files or data

Build multipart form data elements. The form_file function uploads a file. The form_data function allows for posting a string or raw vector with a custom content-type.

Usage
form_file(path, type = NULL)

form_data(value, type = NULL)

Arguments
path

a string with a path to an existing file on disk

type

MIME content-type of the file.

value

a character or raw vector to post

Aliases
  • multipart
  • form_file
  • form_data
Documentation reproduced from package curl, version 3.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.