Open baudev opened 4 years ago
This is needed yes. However, I think it needs to add some features to the global plugin: the end user should be able to pass parameters to the S3 command. So something like this:
$filesystem->getPublicUrl($filename, $params);
.
So we need to be able to pass optional parameters to the getPublicUrl
method.
It seems to be a good solution indeed :+1:
Currently, the adapter for AWS s3 v3 only allows you to retrieve the URL of an object:
https://github.com/thib92/flysystem-public-url-plugin/blob/f5903ea19a91bc1e34c618de869311191899234c/src/Adapter/AwsS3UrlAdapter.php#L26
This can be annoying if you have a private bucket and you want a public url that does not require authentication (convenient for browsers).
The solution is therefore to generate a signed url (see here):
I'll try to do a PR if I have time :wink: