Pixelairport's avatar

S3 Permissions for temporaryUrl

I started to use S3 and storage in laravel. I uploaded files, but cant read them. I want to use temporaryurls only. Not the normal urls. But i get access denied everytime. I can switch the permission " Blocking public access to buckets and objects granted by any Access Control Lists (ACLs)" (translated with google) to off. Then it works. But then also normal urls will work. Hope somebody understand what i mean an have an idea.

0 likes
3 replies
squibby's avatar

What code are you using to generate the urls? Does it give you an s3 signed url?

1 like
Pixelairport's avatar

Yes. It is a s3 url to my file with a lot of parameters. And if i set the second permission to off in my s3 then the url work.

Pixelairport's avatar
Pixelairport
OP
Best Answer
Level 12

Ok today it works... not sure why. Maybe i did something wrong with permissions or used a wrong url... no idea... but now it works :) thx for help @squibby

Please or to participate in this conversation.