Upload a file.
put_dbfs.Rd
Uploads a file through the use of multipart form post. It is mainly used for streaming uploads, but can also be used as a convenient single call for data upload.
Usage
put_dbfs(client, path, contents = NULL, overwrite = NULL)
dbfsPut(client, path, contents = NULL, overwrite = NULL)
Arguments
- client
Required. Instance of DatabricksClient()
- path
Required. The path of the new file.
- contents
This parameter might be absent, and instead a posted file will be used.
- overwrite
The flag that specifies whether to overwrite existing file/files.
Details
Alternatively you can pass contents as base64 string.
The amount of data that can be passed (when not streaming) using the
contents parameter is limited to 1 MB. MAX_BLOCK_SIZE_EXCEEDED
will be
thrown if this limit is exceeded.
If you want to upload large files, use the streaming upload. For details, see :method:dbfs/create, :method:dbfs/addBlock, :method:dbfs/close.