Upload recorded audio to S3? #56
Unanswered
theDanielJLewis
asked this question in
Q&A
Replies: 1 comment 3 replies
-
For AWS SDK v3, are you trying to use the PutObjectCommand and if so, what are you passing as the I have done something similar to this but with aws-sdk (v2). Here is how I did it. const uploadFileToS3 = async (filename, fileContent) => {
const input = {
Bucket: process.env.S3_BUCKET_NAME,
Key: filename,
Body: fileContent // the audio blob
}
await s3.upload(input).promise()
} Apparently the input attributes have remained the same from v2 -> v3 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been banging my head on my keyboard trying to figure this out today.
I'm using this to record audio in the browser. That gives me a blob of that audio. I can convert that blob into a URL object and download it just fine. It makes a .webm file that I can play in VLC or convert to something else.
But I'm trying to upload that file to Amazon S3 / Backblaze B2 (same API). Everything I've tried falls into one of these three problems:
I'm totally exhausted trying to figure this out. Can someone please help me?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions