Skip to content

[Feature Request] - UploadCare Custom CDN #7918

Description

@senechalloic

Context

I use Version 5.0.0-beta.5 — commit [e08e917]

I configured as ENV the public and secret for UploadCare.

I can upload profile image, but I can't access it.

Impact

High in someway, no file can be used for a new deployment (new uploadcare account) through Monica platform.

Analysis

The url generated is under:
https://ucarecdn.com/d2d8a156-48e7-4650-b7f9-ff660e296221/-/scale_crop/300x300/smart/-/format/auto/-/quality/smart_retina/

Which is a 404

https://2fxelce9su.ucarecd.net/d2d8a156-48e7-4650-b7f9-ff660e296221/aurlien.jpg

Which works

Note: I updated uuid and private subdmain to keep it secret.

Proposition

Add setting UPLOADCARE_CDN in .env

At every 25 places in the code where "https://ucarecdn.com/" is used, replace by this env value.

Source

Here is how the account configuration looks

Image

Here is the official declaration of upload care implying the change

"Accounts created before September 4, 2025 can continue using the legacy global domain ucarecdn.com"

https://uploadcare.com/docs/delivery/cdn/
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions