pub async fn upload(
http: &Client,
server: &Url,
auth: &Event,
bytes: &Arc<Vec<u8>>,
hash: &str,
mime: &str,
sent: &Sent,
) -> Result<Blob, UploadError>Expand description
Send the file bytes, whose hash is hash and which is a mime, to
server (BUD-02), after asking whether it would take it (BUD-06),
with sent kept at how much of it has gone. Returns the file as the
server has it.