Skip to main content

wrap

Function wrap 

Source
pub async fn wrap(
    authorization: DriveAuthorization,
    name: &str,
    content_type: &str,
    data: Vec<u8>,
    options: FileDates,
) -> Result<File>
Expand description

Builds an in-memory file from bytes the caller already holds (the browser SDK takes a File). An empty content_type is inferred from the name.