Closed (fixed)
Project:
Media Browser Plus
Version:
7.x-3.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Jun 2014 at 05:42 UTC
Updated:
9 Aug 2016 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
matthiasm11 commentedI can confirm the issue on media_browser_plus 7.x-3.0-beta3 in combination with webforms 7.x-3.20.
Comment #2
matthiasm11 commentedFixed issue by adding a condition for webform uploads in
media_browser_plus.file.inc:Comment #3
l0keI faced the same issue and another solution is to define webform scheme and use it instead of public. Don't think this is relevant to the latest webform version, but for 7.x-3.20 you can use this patch. The patch is out of scope of MBP module, the point is just to share a solution.
Comment #4
spasmody commentedI tried both solutions, i.e. MBP patch by matthiasm11 and webform patch by lokeoke but unsuccessfully.
I use MBP 7.x-3.0-beta3+27-dev , Media 7.x-2.0-beta1 and webform 7x-7.10. Does anyone has a solution ?
Comment #5
gambryThis is a more general issue, affecting every module trying to save a file with file_save_data() in a specific folder (it works if the folder is the scheme root).
I'm having this problem with gmap module, saving the markers in public://js/gmap_markers.js but media_browser_plus overwrites the uri to public://gmap_markers.js.
The point is if there isn't a term on the entity AND uri != the scheme root (so it's a specific folder) media_browser_plus should not change it, leaving the module original settings.
Comment #6
gambryI created a patch in the issue "Modules should be able to bypass media file processing" which should help this problem too.
Basically when there isn't a specified field_folder term and there is a default folder ("webform" in your case), it returns immediately without running the MBP actions.
Comment #7
socialnicheguru commentedComment #8
gambryWondering why Needs Work. As mentioned on #6 The patch committed from #2252223 should solve the issue.
I see more appropriate Needs Review (+ tagging it as Novice as reviewing is trivial as testing Webform file upload).
Comment #9
l0keOk, #2252223: Modules should be able to bypass media file processing is fixed long time ago, and it does make things work.