Common interface for Files / Media types #11213
matthewcare
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The introduction of additional media types is welcomed; however when looping over media, it's frustrating to access common properties such as
UmbracoBytes
andUmbracoExtension
, as there isn't anything to cast to which contains these properties.It's also slightly inconsistent with all media types containing an
UmbracoFile
property with a path to the file, except forImage
which instead contains the entire image cropper value.I would like to see a common interface so that I can avoid doing this when I need to display the file type and size.
I know it would be a breaking change, but renaming to
UmbracoMediaFile
andUmbracoMediaImage
might also help make things a bit more consistentBeta Was this translation helpful? Give feedback.
All reactions