Hello!

When I work with a website with special port, I have a problem with file URL uploaded with IMCE.

Port on furl

How to reproduce it:
1) Change port - add please $_SERVER['HTTP_HOST'] = 'mywebsite.loc:8081'; to the settings.php
2) Try to add a new file with IMCE.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

michael.krainiuk created an issue. See original summary.

mikhailkrainiuk’s picture

Status: Active » Needs review
FileSize
552 bytes

I've created a patch to fix the problem in "updateUI: function()" in the imce.js
"location.protocol" and "location.host" don't have a port number. I added a port checking.
Please check the patch.

  • ufku committed 390aff0 on 7.x-1.x
    Issue #2863312 by michael.krainiuk: Fixed port number in file URLs
    
ufku’s picture

Committed. Thanks.

ufku’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.