In a content type with field type "File" and widget "Media file selector", I clicked "select media" button to select my media files, a window will popup asking for either "Upload" a file or find the existing file from "Library Plus" tab. I have already bulk uploaded some PDF files and would like to select one from the "Library Plus". However, there is no PDF file shown in the "Library Plus", the folder just won't show PDF file at all but only showed IMAGE (jpeg, gif) files.
When going through the "Find content" -> "Media" tab, and clicking through the media folders, the PDF files certainly showed up there.
This is problematic because my user will need to find the PDF files to link to while creating the contents. The "Library Plus" showed them 0 file exists but in fact there are a bunch there. Also, I only need this for PDF file now, will other file types show up in the "Media file selector" "Library Plus" tab, eg. docx, xls, txt files, etc.? I think this bug on "PDF" is more critical.
Comments
Comment #1
ambientdrup commentedI can reproduce this issue. Any suggestions on fixes?
Comment #2
das-peter commentedMay I ask you to you give MBP 3.0 beta1 a try?
Once the dependencies are met the update should be quite painless.
My goal is to discontinue the support for version 2.x as soon as possible.
Comment #3
gaellafond commentedI tried MBP 3.0, alone with all the dependencies and upgrading all the related modules like Media Gallery, Media module... That was really painful mainly because most of those module do not have proper ".install" files that do the migration of the data, resulting of tons of errors everywhere. I fixed about 4 issues in various modules while doing the migration... I end-up with a result that was really different from the actual Media solution; the integration with the WYSIWYG module was not what we are looking for.
I had to rollback to 1.x and fix this issue. The solution I found is to ignore the filters. I know there is a configuration for it, I saw the code (js/media_browser_plus.admin.menu.js), but I can't find it anywhere in Drupal and I don't have much time to mess around...
Patch to ignore the filters (it's not a proper patch, there is only one line to modify, it's easier to do it manually)
File: js/media_browser_plus.admin.js
Line: 226
Replace:
$filter = Drupal.settings.media_browser_plus.filter;With:
$filter = null;//Drupal.settings.media_browser_plus.filter;Ignoring the filter may not be the best solution since (I assume) it will list everything where only images or videos are expected, but I prefer this then migrating to the version 3.x
I'm closing this issue. Re-open if that do not fix your issue.