I have a content type with a file field for attachments like PDF files and used the media widget for selecting files.
When browsing the mediabrowser plus from the filefield PDF-files are not found. When using mediabrowserplus from wysiwyg the pdf files can be found.
I noticed that this is caused by a filter i didnt expect. When loading the contents of the folder there is a ajax call with a filter. See below:
admin/content/file/thumbnailsJSON?folder=folder_load_8530&page=0&filter=[{"property"%3A["type"%2C["image"]%2C"IN"]}]
I didn't expect all after '&filter='. Is this a bug or leftover? Or did i miss something?
To fix this i did a quick&dirty fix, with commenting lines 106 till 135 in media_browser_plus.module.
Line 106 reads the filter setting ('if (isset($_GET['filter'])) {').
Comments
Comment #1
DrDam CreditAttribution: DrDam commentedHello, I work on this bug too.
Actualy, I find that the "filter image" are allready present on clic on "add media" 'Media file selector' button
I search in media module where this type had been add
Comment #2
DrDam CreditAttribution: DrDam commentedI find a """clean""" solution
in one module déclare a méthod :
In this case, the types aren't forced when cck field will be generated and I get my pdf in library
Enjoy !
Comment #3
salvis