I’m working with Payload CMS + @payloadcms/storage-s3 + Cloudflare R2.
Requirement:
Default
mediacollection uploads should go to the bucket root.Only profile images uploaded via a custom API route should go to
user-profile-image/.Profile images must still create a MongoDB document.
I noticed that:
prefixapplies to the entire collection.Filenames containing
/are sanitized.
Is there a supported way to conditionally control the upload path per request?