[web] Add function to upload media to Blob service
Summary:
Web counterpart of D7649. This diff adds a function that calls all necessary endpoints to upload a media file to Blob service. It has 3 stages:
- Create a holder and assign it to a blob (identified by blob hash)
- If the blob content doesn't exist yet, upload it. Used the XMLHttpRequest call very similiar to the one in lib/utils/upload-blob.js
- When the above succeeds, upload blob metadata to keyserver
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/D7689