powered by
POST()
PUT()
Upload a file with POST() or PUT().
upload_file(path, type = NULL)
path to file
mime type of path. If not supplied, will be guess by mime::guess_type() when needed.
mime::guess_type()
citation <- upload_file(system.file("CITATION")) POST("http://httpbin.org/post", body = citation) POST("http://httpbin.org/post", body = list(y = citation))
Run the code above in your browser using DataLab