laosb / ghos3

A modernized AWS S3 storage adapter for Ghost.
Other
34 stars 12 forks source link

Feature Request: Separate Storage Paths for Different Content Types #20

Open toutouer opened 4 months ago

toutouer commented 4 months ago

Thank you for your excellent work on the GhoS3 adapter. Building upon your solid foundation, I have a feature request that could further enhance the adapter's flexibility.

Current Behavior The current GhoS3 adapter uses a single pathPrefix for all types of content (images, media, and files).

Desired Behavior It would be beneficial to have the ability to specify different storage paths for images, media, and files, similar to Ghost's local storage structure:

Motivation

Proposed Implementation Consider adding new configuration options to the S3 adapter:

"s3": {
  ...
  "pathPrefix": {
    "images": "content/images/",
    "media": "content/media/",
    "files": "content/files/"
  }
  ...
}

Thank you for considering this feature request and for your continued efforts to improve the Ghost ecosystem.