What's the loco way to generate presigned s3 urls? #1533
Replies: 3 comments
-
|
Hey @CharlieBytesX, |
Beta Was this translation helpful? Give feedback.
-
|
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)
); |
Beta Was this translation helpful? Give feedback.
-
|
Whit the aws s3 rust skd https://docs.aws.amazon.com/sdk-for-rust/latest/dg/presigned-urls.html |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions