You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A filesystem with Attempt to set the focal point automatically? enabled, a subfolder set, and a Volume leveraging this filesystem with a subfolder set, results in the Rekognition api returning a 400 Unable 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 named User Photos. Both volumes use the Cloud Provider filesystem. Both volumes set their subpath to uploads and users 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
Create a filesystem with a subfolder path. e.g @s3BasePath
Enable Attempt to set the focal point automatically?
Create a volume using this new filesytem
Set the subpath of the volume to foobar
Save the volume
Upload an image via the CP
Get 400 error toast notification
Additional info
Craft version: 5.0.0-beta.2
PHP version: 8.2.16
Database driver & version: MySQL 8.0.30
Plugins & versions: S3 v3.x-dev
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: