Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i upload this blob to firebase storage #125

Closed
Yash2906 opened this issue Aug 7, 2021 · 2 comments
Closed

How can i upload this blob to firebase storage #125

Yash2906 opened this issue Aug 7, 2021 · 2 comments

Comments

@Yash2906
Copy link

Yash2906 commented Aug 7, 2021

This NPM is working really great, as per output i got blob as response, but however i can upload it to firebase storage, i have put all firebase storage upload code , and uploading is also working fine, but after download from storage its not working, and all time upload file storage is 9B only

@Yash2906
Copy link
Author

Yash2906 commented Aug 7, 2021

onStop(recordedBlob) {
    console.log("recordedBlob is: ", recordedBlob);
    var storage = app.storage();
    var storageRef = storage.ref();
    var uploadTask = storageRef
    .child("folder/" + "yash.mp3")
    .put(recordedBlob,{
        contentType: 'audio/mpeg',
    });
    uploadTask.then(() => console.log("uploading"));
}

@Yash2906 Yash2906 closed this as completed Aug 7, 2021
@Yash2906
Copy link
Author

Yash2906 commented Aug 7, 2021

fixed, need to send recordedBlob.blob ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant