Laravel-Backpack / medialibrary-uploaders

MIT License
10 stars 4 forks source link

Pre signed URL for private buckets #20

Closed raviroshanmehta closed 1 year ago

raviroshanmehta commented 1 year ago

Module is working as expected for pubic s3 buckets but for private s3 buckets there is no option to generate temporary URL to view files directly from admin login.

How can i add this option in admin panel for private buckets pre signed URLs ?

\Storage::disk('s3')->temporaryUrl( $fileName , \Carbon\Carbon::now()->addMinutes(5) );