-
Notifications
You must be signed in to change notification settings - Fork 236
Unable to upload images via mcpuk browser #371
Comments
У меня точно такая же проблема появилась после обновления на 1.0.15. |
English here please: (Translated by Google): I have exactly the same problem appeared after updating to 1.0.15. |
Maybe it is a modSecurity issue |
You should clear browser cache to prevent problems after upgrading. @neoneddy, is it possible to reproduce this bug somehow? |
@Pathologic This problem has been persistent across browsers, and even across OS Installs (I did a fresh OS X install during the time my client has been having these issues) I'm not sure the exact steps to reproduce beyond the environment I described in the issue. I can provide access to the site if that helps. Email me shawn@himmdesign.com if you want. Thanks for following up on this. |
@neoneddy, I've sent e-mail to you. |
Just a thought. Do you have any htaccess rules restricting the use of domain using www or not? |
@mrhaw I actually loaded in a fresh htaccess from the latest install. So it's pretty much stock. Being that the other person having issues here http://forums.modx.com/thread/?thread=95047&page=1 Is also on Rackspace Cloud Sites, it's probably something there, but it used to work fine before. I'm not sure exactly what's changed in recent versions. I can confirm that MODx Revo uploads work fine on Cloud Sites. |
@neoneddy I've solved your problem (excuse me, please, for access manager without your permission). browser.baseGetData = function(act) {
var data = 'browse.php?type=' + encodeURIComponent(this.type) + '&lng=' + this.lang;
if (act)
if (act == 'upload') act = 'upld';
data += "&act=" + act;
if (this.cms)
data += "&cms=" + this.cms;
return data;
}; and added one method to manager/media/browser/mcpuk/core/browser.php: protected function act_upld() {
return $this->act_upload();
} |
Thanks Pathologic There are 2 files browser.php manager/media/browser/mcpuk/browser.php Which am I supposed to be adding to? And whereabouts in the file? |
@sparkyhd core/browser.php - you can add method after original act_upload for example, it doesn't matter. |
Thanks Is it ok to have 2 "act_upload" |
You can rename act_upload to act_upld if it seems better for you ;) |
Thanks Pathologic I can confirm this is now working on Rackspace Cloudsites. Will this going into the core product? Was Rackspace being too fussy or was Evo being too casual? |
@Pathologic Could you prepare a PR with that, please? |
@sparkyhd Rackspace is a bit too restricted there in my opinion. Disallow parameter value 'upload' and allow parameter 'upld' seems to be a bit strange. |
@Jako, I'm against this hack to be in core while there are no standards of variables values 😆 Rackspace, not MODX, should change their paranoic settings. |
Rackspacace has worked with MODx with issues in Revolution and the cloud sites product. I don't see any major changes being done on their end. Security has been a big deal for them and removing many useful tools we used to have. Lastly, if a Cloud Sites customer tries to use MODx Evolution and it doesn't work right, they aren't going blame Rackspace, they'll assume MODx is subpar. |
+1 for neoneddy |
+2 |
I have the same problem. Would be nice to change this for 1.0.16 ? |
/manager/media/browser/mcpuk/js/browser/ |
there is no misc.js there and adding the protected lines between <?php doesn't work. getting error. |
попробовал патчить - не помогло... |
Sorry, but my hack is not enough. I can implement another uploader to KCFinder, but will it be the solution? If someone came across this issue, please provide information from your hoster, what modsecurity (or naxsi) rules KCFinder violates. |
@Pathologic Thanks your information.... |
I have asked my online service server... and the error is: The actual solution: After that all is OK but is necessary to ask to change ModSecurity every site I have to install ou upgrade... Not functional but it's the solution. |
@vmoreira so, probably it would be easier to change uploader, as I understand nothing from your error log 😸 |
@Pathologic Error message I'm getting. thanks for the hepl. |
Hi, have version Evo 1.5 in Rackspace Cloud but CKfinder same problem any solution? I try rack but no work |
I can upload via the file manager so I know it's not a permissions issue. This is present in 1.0.14 and 1.0.15 .
I'm on Rackspace Cloud Sites, PHP Version 5.4.10.
People familiar with the situation say the JS should not be specifying a content length, the browser should do that. I'm just the messenger here.
The text was updated successfully, but these errors were encountered: