Unsuccessful attempt to upload audio/incorporate it into the platform

Guys, I've been trying my best to upload voice audios of a few seconds in .mp3 and .wav format and nothing works, I've tried uploading directly via the buttons and even embedding and nothing works
No description
14 Replies
Baptiste
Baptiste3mo ago
Any error message? Can you provide the file you are trying to upload?
magnunramon
magnunramon2mo ago
When I try to load an audio, photo or video, it just loads but nothing happens.
Simone Fernandes
When you say "nothing happens", Does the system upload the file and it doesn't work or it doesn't upload the file at all?
Baptiste
Baptiste2mo ago
Are you on app.typebot.io or on your self-hosted instance?
magnunramon
magnunramon2mo ago
He "pretends" to upload the file. No message appears, it doesn't upload the file or anything. Nothing happens.
hiagosilvas
hiagosilvas2mo ago
@magnunramon this happened to me, but it's just the S3 configuration. If you don't want to use AWS, you can deploy a docker container with the minio image. Just remember that minio needs to have a domain to port the API publicly for everything to work well. I created my bucket as private and used the json below to set the permissions.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::typebot"
]
},
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::typebot"
],
"Condition": {
"StringEquals": {
"s3:prefix": [
"public"
]
}
}
},
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:ListMultipartUploadParts",
"s3:PutObject",
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::typebot/public*"
]
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::typebot"
]
},
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::typebot"
],
"Condition": {
"StringEquals": {
"s3:prefix": [
"public"
]
}
}
},
{
"Effect": "Allow",
"Main": {
"AWS": [
"*"
]
},
"Action": [
"s3:ListMultipartUploadParts",
"s3:PutObject",
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::typebot/public*"
]
}
]
}
@Baptiste I wasted a little time on this, after I thought it could be an unconfigured file provider. Perhaps an alert with the button disabled and a message in red written: see how to configure uploads... With an external link referencing the typebot documentation. I'll try to download the source and do that, and if I can, I'll send you a pull request.
Andrea
Andrea2mo ago
I get: Invalid Policy Element: The policy element Main is not valid. on AWS S3. Any ideas?
Russ Webb
Russ Webb2mo ago
Did you copy the bucket policy from the template in the Typebot help docs, in the S3 storage part? Also, your bucket needs to be set to NOT block public access. AWS doesn't seem to like the CORS policy JSON though. It says it's not a JSON. It is. Not sure what was up with AWS but skip that and it works fine. Just make sure you're not opening a critical bucket open to the public. Only allow public access to a bucket dedicated to your bots.
hiagosilvas
hiagosilvas2mo ago
I used this policy on Minio, I didn't deploy it on S3
Fuzzy
Fuzzy4w ago
@magnunramon An alternative is to use a direct link to the audio file, you can use https://jukehost.co.uk/ for that, you can upload your audio and get the direct link, then just paste it into the Embed Link option.
magnunramon
magnunramon4w ago
Thank you all, you're great! I have paused my operation at the moment, but when I return I will follow your tips. Greetings from Brazil.
Fuzzy
Fuzzy3w ago
tmj
Keymaker
Keymaker2w ago
s3 doesn't work have attempted numerous times following your instruction and improvising as well. Really need to get this features working for my eval and use case.