Skip to content

Make it possible to generate media size limit dynamically #18788

@sarahelsaig

Description

@sarahelsaig

Is your feature request related to a problem?

The use case is to generate media upload size limit based on external factors. For example to allot a certain amount of total disk space per tenant.

Describe the solution you'd like

We are doing something similar in Lombiq.Hosting.Tenants.MediaStorageManagement package, but it uses a somewhat fragile workaround. So adding a provider interface to MediaSizeLimitAttribute would be prefarable.

Describe alternatives you've considered

Currently we are using a secondary filter meant to overwrite the result of MediaSizeLimitAttribute when applicable. It's not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions