Arguments
- path
path to file
- type
mime type of path. If not supplied, will be guess by
mime::guess_type()
when needed.
Examples
citation <- upload_file(system.file("CITATION"))
if (FALSE) {
POST("http://httpbin.org/post", body = citation)
POST("http://httpbin.org/post", body = list(y = citation))
}