Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Rogers 134 posts 712 karma points
    Mar 21, 2023 @ 13:29
    Daniel Rogers
    0

    Media Types

    Using umbraco 11.2.0

    I are trying to create a custom upload dropzone as I want to be able to trigger custom events of of it to process.

    All is working. with the code the umbraco code. However line

    mediaTypeHelper.getAllowedImagetypes($scope.startNodeId)
    

    returns the six options that are available in the media section. and not my custom own mediaType (created in the backoffice media types sectrion).

    Note: I have 8 media types but when you goto the media section there is only 6 to choose from.

    If I use

    mediaTypeResource.getAll()
    

    I get all 8 options but there seems to be a difference in the information returned and therefor later in the umbraco code when the filters are applied it errors out.

    My question and I think the correct solution to be would be as simple as the media section recognising all 8 mediaTypes but how do I do this.

  • Huw Reddick 1875 posts 6421 karma points MVP 2x c-trib
    Mar 21, 2023 @ 13:55
    Huw Reddick
    100

    Just athought, but did you add your custom Image type to the permissions (allowed child nodes) for Folder?

  • Daniel Rogers 134 posts 712 karma points
    Mar 21, 2023 @ 14:00
    Daniel Rogers
    0

    Im going to say no because I dont know what / or how to go about that.

  • Daniel Rogers 134 posts 712 karma points
    Mar 21, 2023 @ 14:06
    Daniel Rogers
    0

    Found it thanks now I will figure out the filtering properly.

Please Sign in or register to post replies

Write your reply to:

Draft