pub fn upload(
client: &impl UserAuthClient,
arg: &UploadArg,
body: &[u8],
) -> Result<FileMetadata, Error<UploadError>>
Available on crate features
sync_routes
and dbx_files
only.Expand description
Create a new file with the contents provided in the request. Do not use this to upload a file
larger than 150 MB. Instead, create an upload session with
upload_session_start()
. Calls to this endpoint will
count as data transport calls for any Dropbox Business teams with a limit on the number of data
transport calls allowed per month. For more information, see the Data transport limit
page.