
Last chance! 50% off unlimited learning
Sale ends in
Upload a design file to an app-managed bucket using the Data Management API.
uploadFile(file = NULL, token = NULL, bucket = "mybucket")
An object containing the bucketKey
, objectId
(i.e.
urn), objectKey
(i.e. file name), size
, contentType
(i.e. "application/octet-stream"), location
. and other content
information.
A string. File path.
A string. Token generated with getToken
function
with bucket:create
, bucket:read
, and data:write
scopes.
A string. Unique bucket name. Defaults to mybucket
.
if (FALSE) {
# Upload the "aerial.dwg" file to "mybucket"
resp <- uploadFile(file = system.file("inst/samples/aerial.dwg", package = "AutoDeskR"),
token = myToken, bucket = "mybucket")
myUrn <- resp$content$objectId
}
Run the code above in your browser using DataLab