api_upload_file {oaii}R Documentation

Create "uploaded file" object

Description

See upload_file

Usage

api_upload_file(f, type = NULL)

Arguments

f

string/raw, content of file or path to the file

type

mime type of path. If not supplied, will be guess by mime::guess_type() when needed.

Value

NULL if 'f' was NULL otherwise "uploaded_file" object


[Package oaii version 0.5.0 Index]