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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.