HomePhabricator
Diffusion Comm db9d19e941b8

[native] Add function to upload media to blob service

Description

[native] Add function to upload media to blob service

Summary:
This diff adds a function that calls all necessary endpoints to upload a media file to Blob service. It has 3 stages:

  1. Create a holder and assign it to a blob (identified by blob hash)
  2. If the blob content doesn't exist yet, upload it
  3. When the above succeeds, upload blob metadata to keyserver

Depends on D7620, D7648

Test Plan: This function is called and tested in the next diff.

Reviewers: atul, marcin

Reviewed By: atul

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D7649

Details

Provenance
bartekAuthored on Apr 27 2023, 2:17 AM
Reviewer
atul
Differential Revision
D7649: [native] Add function to upload media to blob service
Parents
rCOMMb62c392ba505: [web] Caclulate encrypted media sha256
Branches
Unknown
Tags
Unknown