Hi,
We originally used local storage which saved all images to /images/. We use a CDN with this so a bunch of URLs exist in the wild like sub.cdn.com/images/date/file.ext
Now we are migrating local to S3 with the same CDN so our images don't break. To do this I had to migrate everything to the S3 directory /images/ in the bucket. These images work, but new images do not upload to the correct location.
This is the way S3 is setup on Chevereto:
Bucket:
sub.cdn.com [.'s are necessary in bucket name due to CDN, anyway this is valid]
URL:
sub.cdn.com/images/ [/images is necessary in this URL otherwise all old images break]
Now the connection works, except even though the URL is mapped to /images/, it uploads in the bucket root (so it is bucket/year instead of bucket/images/year)
I have tried:
- Changing the bucket policy so it only allows access to the images, which gives permission error that says it can't write to bucket root
- Changing the "Bucket" setting above to the same as the "URL" (without trailing slash) which gives error with %2F instead of /
How do I get chevereto to upload to the /images/ directory in my bucket?
Thank you
We originally used local storage which saved all images to /images/. We use a CDN with this so a bunch of URLs exist in the wild like sub.cdn.com/images/date/file.ext
Now we are migrating local to S3 with the same CDN so our images don't break. To do this I had to migrate everything to the S3 directory /images/ in the bucket. These images work, but new images do not upload to the correct location.
This is the way S3 is setup on Chevereto:
Bucket:
sub.cdn.com [.'s are necessary in bucket name due to CDN, anyway this is valid]
URL:
sub.cdn.com/images/ [/images is necessary in this URL otherwise all old images break]
Now the connection works, except even though the URL is mapped to /images/, it uploads in the bucket root (so it is bucket/year instead of bucket/images/year)
I have tried:
- Changing the bucket policy so it only allows access to the images, which gives permission error that says it can't write to bucket root
- Changing the "Bucket" setting above to the same as the "URL" (without trailing slash) which gives error with %2F instead of /
How do I get chevereto to upload to the /images/ directory in my bucket?
Thank you