upload_file: Upload a local file to Google Drive

Description Usage Arguments Value

View source: R/files.R

Description

upload_file allows you to upload a locally-stored file to Google Drive, setting title and description along the way if you so choose.

Usage

1
upload_file(file_path, title = NULL, description = NULL, ...)

Arguments

file_path

the full path to the file you want to upload

title

what to set in the "title" field of the resulting Google Drive file

description

what to set in the "description" field.

...

further arguments to pass to httr's POST.

Value

a metadata object referring to the uploaded file, which can be used in subsequent requests. Matches the output format of file_metadata


noamross/driver documentation built on May 23, 2019, 9:30 p.m.