that *is the code that fetches the files' listing;
but you'll need more than "one of code"" to filter by mimetype
because the mimetype is stored much further away than type, subtype are -
as metadata and that api call above is not hitting the metadata at all.
and so have to do the files fetching in some other manner,
unless the file upload code is changed to store the mimetype say as subtype.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.