Repository navigation
What's the loco way to generate presigned s3 urls? #1533
Unanswered
CharlieBytesX
asked this question in
Q&A
Replies: 3 comments
|
Hey @CharlieBytesX, |
0 replies
|
When uploading files to s3 services, the bucket can be private. And a temporal presigned url is generated and sent from the web server to the frontend so it can have temp access to download the file, the s3 service is the one that sends the file to the clients. So users can download files directly from s3 servers. For example in laravel when using the "framework storage" (the same idea of loco storage) when using s3 driver: use Illuminate\Support\Facades\Storage;
$url = Storage::temporaryUrl(
'file.jpg', now()->addMinutes(5)
); |
0 replies
|
Whit the aws s3 rust skd https://docs.aws.amazon.com/sdk-for-rust/latest/dg/presigned-urls.html |
0 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.
What's the loco way to generate presigned s3 urls? Using storage or an alternative method?
All reactions