Closed (outdated)
Project:
Media Browser Plus
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2012 at 18:44 UTC
Updated:
14 Oct 2018 at 17:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ParisLiakos commentedIn
function media_browser_plus_move_file($tid, $media, $replace = FILE_EXISTS_RENAME) {replace
FILE_EXISTS_RENAMEwithFILE_EXISTS_REPLACE.i dont think there is anything in the roadmap:P
Comment #2
ambientdrup commentedThis works. However one new issue. Once I replace the $replace value with _REPLACE, then when I go ahead and test it and upload a replacement file; the file does upload but the actual uploader screen/modal window does not auto refresh back to the Files screen once the upload is completed. It just shows a horizontal line across the screen/modal.
It does continue to work without issue when the value is _RENAME.
To get it to kick back to the Files main browser screen I need to do a full browser refresh. The file does upload and replace the existing file correctly however. So that's working.
I'm attaching a screenshot of the new behavior - looks like something is not firing correctly in the jQuery or javascript? Any suggestions?
-Trevor
Comment #3
ambientdrup commentedHere's the screenshot.
Comment #4
ambientdrup commentedNot totally sure if this is related but there are log entries firing at the same time as I'm running these replacement files:
1) Location & Referrer:
/media/browser?render=media-popup&types=&activePlugins=&disabledPlugins%5B%5D=library&multiselect=true&plugins=undefined
2) The file public://screen2.jpg was not deleted, because it does not exist.
3) The file public://ctools/css was not deleted, because it does not exist.
-Trevor
Comment #5
ParisLiakos commentedcan you check for any javascript errors?
Comment #6
ambientdrup commentedTons of errors being reported. For example, getting this:
Warning: Use of attributes' nodeValue attribute is deprecated. Use value instead.
Source File: http://localhost/site/admin/content?render=overlay
Line: 0
and this ...
Warning: Unknown property 'zoom'. Declaration dropped.
Source File: http://localhost/site/misc/ui/jquery.ui.dialog.css?m0itfj
Line: 17
Amongst others.
-Trevor
Comment #7
ambientdrup commentedAnother issue here - the thumbnail image of the replaced file in the "Thumbnails" view screen still shows the existing image (before the replacement was swapped in). If you actually preview or view the image it shows the correct full scale replaced version, but the thumbnail is not updating.
I think this still needs more work - obviously it's buggy by just replacing the _RENAME with _REPLACE.
-Trevor
Comment #8
salvis