- // Set visibility when a non-AWS-s3, s3-like storage option is in use.
- // Done since this call can break s3-like services but desired for other image stores.
- // Attempting to set ACL during above put request requires different permissions
- // hence would technically be a breaking change for actual s3 usage.
+ // Set public visibility to ensure public access on S3, or that the file is accessible
+ // to other processes (like web-servers) for local file storage options.
+ // We avoid attempting this for (non-AWS) s3-like systems (even in a try-catch) as
+ // we've always avoided setting permissions for s3-like due to potential issues,
+ // with docs advising setting pre-configured permissions instead.
+ // We also don't do this as the default filesystem/driver level as that can technically
+ // require different ACLs for S3, and this provides us more logical control.