api_upload_file: Create "uploaded file" object
Usage
api_upload_file(f, type = NULL)
Value
NULL if `f` was NULL otherwise "uploaded_file" object
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.