egeldenhuys / ghost-cloudflare-r2

Cloudflare R2 storage adapter for Ghost
MIT License
29 stars 5 forks source link

Incorrect Handling of Publication Icon #8

Open toutouer opened 4 months ago

toutouer commented 4 months ago

Environment:

Description:

The Cloudflare R2 storage adapter does not correctly handle the publication icon upload process in Ghost. When using local storage, the publication icon image is uploaded to the /www/ghost/content/images/2024/06 path. Ghost then processes another version of the image to be stored in /ghost/content/images/size/w256h256/2024/06. The final path used when loading the logo on the website is from the latter directory.

However, it seems the Cloudflare R2 adapter does not account for this behavior, leading to a 404 Not Found error when trying to load the logo. image