Function upload

Source
pub fn upload<'a>(
    client: &'a impl UserAuthClient,
    arg: &'a UploadArg,
    body: Bytes,
) -> impl Future<Output = Result<FileMetadata, Error<UploadError>>> + Send + 'a
Available on crate features async_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.