Media Picker show elements that are not selectable...
# help-with-umbraco
m
Does anybody know why the Media Picker shows elements that the user can not select. Lets say the picker only allows (pdf). Right now the picker show all media items. Is it possible to only get it to show folders and in this example pdf-files?
@Sebastiaan a followup on our talk about HQ's way to show how the awesome Backoffice world of components/repositories/contexts etc. is working: This topic above could be a perfect way for a developer at HQ to show how to "attack" such a task by thinking out loud. Where to start? How to find the relevant components? What not to do so HQ do not reject the PR?
s
I think this might be a feature request (or bug, not sure what the intention is). Please do head to the issue tracker to report it (with screenshots / videos) 🙏 And yes, I am thinking about how we can guide people better, I wouldn't really know where to start either. But where I'd probably begin would be to look at the browser's debug tools and go to the network tab to see what endpoint gets called to open the picker. You can also go to to
/umbraco/swagger
to see what those endpoints expect and return. From there I would follow the C# code related to that endpoint. https://cdn.discordapp.com/attachments/1346763174665261148/1348589673903030323/umbraco-swagger.mp4?ex=67d00381&is=67ceb201&hm=bf592e442b1f2e4c19869280bc1e510e0ff49a31b882474314becd90b090337b&