mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
fixes https://github.com/TryGhost/Ghost/issues/16278 `urlToPath` is not a method that is defined on the StorageBase, and thus is not implemented on any custom storage adapter. We need this method to prevent uploading a file in two different directories. Currently this is an edge case: - If you upload a file at midnight between a month shift, it is possible that we upload one file at `/2023/02/file.png` and the original at `/2023/03/file_o.png` - To make sure we upload the second at the same directory, we need the `urlToPath` implementation. The save method sadly only returns the URL, which could be different than the stored file path, so we cannot use that return value. This fix only uses `urlToPath` if available, to prevent above issue. |
||
---|---|---|
.. | ||
adapter-cache-redis | ||
adapter-manager | ||
admin | ||
api-framework | ||
api-version-compatibility-service | ||
audience-feedback | ||
bootstrap-socket | ||
constants | ||
core | ||
custom-theme-settings-service | ||
data-generator | ||
domain-events | ||
dynamic-routing-events | ||
email-analytics-provider-mailgun | ||
email-analytics-service | ||
email-content-generator | ||
email-events | ||
email-service | ||
email-suppression-list | ||
express-dynamic-redirects | ||
extract-api-key | ||
html-to-plaintext | ||
i18n | ||
importer-revue | ||
job-manager | ||
link-redirects | ||
link-replacer | ||
link-tracking | ||
magic-link | ||
mailgun-client | ||
member-attribution | ||
member-events | ||
members-api | ||
members-csv | ||
members-events-service | ||
members-importer | ||
members-ssr | ||
milestones | ||
minifier | ||
mw-api-version-mismatch | ||
mw-cache-control | ||
mw-error-handler | ||
mw-session-from-token | ||
mw-update-user-last-seen | ||
mw-vhost | ||
oembed-service | ||
offers | ||
package-json | ||
payments | ||
portal | ||
referrers | ||
security | ||
session-service | ||
settings-path-manager | ||
staff-service | ||
stats-service | ||
stripe | ||
tags-public | ||
tiers | ||
update-check-service | ||
verification-trigger | ||
version-notifications-data-service | ||
webmentions |