Skip to main content

upload

Function upload 

Source
async fn upload(
    base: &str,
    http: &Client,
    token: &str,
    source: &str,
    req: &InjectionRequest,
    seal_to: Option<&Recipient>,
) -> Result<InjectionRequest, String>
Expand description

Encrypt and upload each file, sealing its key to seal_to when there is one; the request to relay, its files named by the cloud manifest and its msgid bound to it.