Observe that the URL returned from the connector is correctly https://bucket.s3.amazonaws.com/example.com
This seems to occur because when the URL option is not present, a URLCallback is set to get the URL from flysystem. If it is present, that URLCallback is not set, so it falls back to calling elFinderVolumeDriver::getContentUrl, which strips the first character from the filename before forming the base URL.
This was a tough one to find.
Setup:
example.jpg
to the S3 diskhttps://bucket.s3.amazonaws.com/xample.com
instead ofhttps://bucket.s3.amazonaws.com/example.com
Working configuration:
example.jpg
to the S3 diskhttps://bucket.s3.amazonaws.com/example.com
This seems to occur because when the URL option is not present, a
URLCallback
is set to get the URL from flysystem. If it is present, thatURLCallback
is not set, so it falls back to callingelFinderVolumeDriver::getContentUrl
, which strips the first character from the filename before forming the base URL.