upload_file

0th

Percentile

Upload a file with POST() or PUT().

Upload a file with POST() or PUT().

Usage
upload_file(path, type = NULL)
Arguments
path

path to file

type

mime type of path. If not supplied, will be guess by mime::guess_type() when needed.

Aliases
  • upload_file
Examples
# NOT RUN {
citation <- upload_file(system.file("CITATION"))
POST("http://httpbin.org/post", body = citation)
POST("http://httpbin.org/post", body = list(y = citation))
# }
Documentation reproduced from package httr, version 1.4.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.