upload_file {httr} | R Documentation |
POST
or PUT
.Upload a file with POST
or PUT
.
upload_file(path, type = NULL)
path |
path to file |
type |
mime type of path. If not supplied, will be guess by
|
citation <- upload_file(system.file("CITATION")) POST("http://httpbin.org/post", body = citation) POST("http://httpbin.org/post", body = list(y = citation))