Share feedback, ideas and get community help

Updated 9 months ago

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
Attachment
image.png
5
B
m
S
18 comments
Any error message?
Can you provide the file you are trying to upload?
When I try to load an audio, photo or video, it just loads but nothing happens.
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?
Are you on app.typebot.io or on your self-hosted instance?
He "pretends" to upload the file. No message appears, it doesn't upload the file or anything. Nothing happens.
@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.

Plain Text
{
     "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.
I get: Invalid Policy Element: The policy element Main is not valid. on AWS S3. Any ideas?
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.
I used this policy on Minio, I didn't deploy it on S3
@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.
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.
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.
Add a reply
Sign up and join the conversation on Discord