Skip to main content

from_bytes

Function from_bytes 

Source
pub fn from_bytes(
    authorization: CredentialsOrApiKey,
    path: &str,
    content_type: &str,
    data: Vec<u8>,
    options: FileDates,
) -> File
Expand description

Build an in-memory File from raw bytes (not yet uploaded). path is the Drive destination (e.g. tmp/${uuid}-${name}); the display name is the last path segment. The file is offline until an explicit upload().