Can livekit api.S3Upload() upload file as public?
# ask-ai
t
Can livekit api.S3Upload() upload file as public?
t
Thanks for reaching out, Aivis. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! I wanted to share that LiveKit's
S3Upload()
doesn’t have a built-in option to make files public directly. The visibility of files in S3 is actually controlled by your bucket policies, object ACLs, and IAM permissions on the AWS side, rather than through the LiveKit API. To help you make your files public, here are a few approaches you can try: • Set up your S3 bucket with a bucket policy that allows public read access to the objects. • Use AWS Lambda or other triggers to update object ACLs right after the upload. • Generate pre-signed URLs for temporary public access using LiveKit’s
GeneratePresignedUrl
method. If you’d like, I’m here to help you walk through any of these steps or answer any questions you might have. Just let me know! Sources: s3.go | livekit-protocol/src/livekit.rs | livekit/livekit_egress.pb.go | Egress API | LiveKit docs
👍 1