upload_file

0th

Percentile

Upload a file with POST or PUT.

This is a tiny wrapper for RCurl's fileUpload.

Usage
upload_file(path, type = NULL)
Arguments
path
path to file
type
mime type of path. If not supplied, will be guess by guess_type when needed.
Aliases
  • upload_file
Examples
POST("http://httpbin.org/post",
  body = list(y = upload_file(system.file("CITATION"))))
Documentation reproduced from package httr, version 0.6.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.