Run
npm install
npm run dev
Open the local website by clicking b
in the terminal.
- The user selects a file to upload.
- The user clicks on the upload button.
- The website sends a request to
/get_session_url
. /get_session_url
in turn requests authentication through google oauth.- After authenticating it sends an request to the google storage api to create a resumable uppload session url.
- It sends this url as the response from
/get_session_url
. - The website stores this url in the local storage till the file has completed uploading.
- In case on an intruption this url is used to query information about how much of the file was uploaded and to resume the upload.
- As the upload procceds the update percentage is updated.