Closed kylecotter closed 8 months ago
This should be fixed in v2.1.0, which supports both Craft 4 and 5. You can change your craftcms/aws-s3
requirement to ^2.1.0
and run composer update
to get it.
@brandonkelly Was still hitting this issue after updating.
Pretty sure the $filesystem
subfolder path should come first before the volume path here.
@kylecotter Doh, you’re right. Just fixed and tagged 2.2.1.
Description
A filesystem with
Attempt to set the focal point automatically?
enabled, asubfolder
set, and a Volume leveraging this filesystem with asubfolder
set, results in the Rekognition api returning a 400Unable to get object metadata from S3
Not leveraging a subfolder in the volume prevents the error.
Specifically, I have a filesystem named
Cloud Provider
. The subfolder of this filesystem is@s3BasePath
which is an alias of a path that gets set based on the environment we're working in.I have 2 volumes. One named
Uploads
and one namedUser Photos
. Both volumes use theCloud Provider
filesystem. Both volumes set their subpath touploads
andusers
respectively. When uploading a user photo, the error occurs.If however, I remove the subpath from the volumes, and setup two bespoke filesystems (how we would in Craft 4) for their corresponding volume, this issue does not occur.
Steps to reproduce
@s3BasePath
Attempt to set the focal point automatically?
foobar
Additional info