Copied to clipboard

Flag this post as spam?

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


  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jul 28, 2016 @ 08:20
    Morten Bock
    0

    dialogService.mediaPicker() does not seem to respect onlyImages option

    In a custom section, I'm using the following code:

    dialogService.mediaPicker({ callback: populatePicture, onlyImages: true});
    

    However, it still lets me select a folder in the dialog.

    If I step into the code, it seems to be using an obsolete umb-photo-folder directive.

    Is there a different (newer) way I should be using the media picker in my custom section? Or is this a bug?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jul 28, 2016 @ 13:09
    Morten Bock
    100

    To answer my own question, umbOverlay seems to be the new way to go when picking media:

    https://our.umbraco.org/apidocs/ui/#/api/umbraco.directives.directive:umbOverlay

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies