I want to be able to navigate to a sub-folder in Media Manager in the back end and  upload a file. I can go to the sub-folder, but when I upload the file, it ends up in the main folder instead. This was working in Joomla 2.5, but it seems to be broken in J3.2.2. Please fix this.
Opened On:
3 Mar 2014, 20:52 by Robin Gross
Closed On:
8 May 2014, 10:54
Fixed in SVN/GitHub

Filed Under

  • First
  • Media Manager
  • No Platform Implications
  • other
  • Other
  • PHP 5.5
  • Second
  • Third


Posted on 4 Mar 2014, 8:34 by Brian Teeman

This has been reported many times and it seems to keep coming back for some people. Marking as confirmed because I;ve seen it myself sometimes
Posted on 20 Apr 2014, 8:31 by Benoit Vezina

I confirm the problem
Posted on 20 Apr 2014, 11:37 by Viktor Vogel

Would like to fix it but can not reproduce it. I tried it with the 2 server settings and all tests were successful:

APACHE 2.4.7 - MYSQL 5.6.15 - PHP 5.5.11


APACHE 2.4.2 - MYSQL 5.5.24 - PHP 5.4.15

Please post more information so that I can reproduce it.
Posted on 20 Apr 2014, 12:13 by Brian Teeman

I'm pretty sure its browser related.
Posted on 2 May 2014, 2:17 by Astrid van Eerd

I can confirm.
PHP 5.4.27, MYSQL 5.5.32, Joomla 3.3.0, Firefox 29.0, Chrome 34.0.1847.131 m

So in my opinion it's not browser related.

I personally never use mediamanager, but stumbled upon this problem on dutch forum and wanted to check. Using JCE to upload doesn't cause this problem.
Posted on 4 May 2014, 17:53 by Nick Savov

Thanks all! I'm moving this up to Medium-High.
Related tracker items:
Posted on 4 May 2014, 18:00 by Nick Savov

There's a pull request available at . I'm moving this item to pending.

Please test the fix.
Posted on 4 May 2014, 21:17 by Leo Lammerink


Patch resolves the problem. File is loaded in selected folder.

Posted on 5 May 2014, 3:38 by Peter Lose

@test The PR fixes the problem!
Posted on 5 May 2014, 3:40 by Astrid van Eerd


Problem fixed.
Posted on 5 May 2014, 4:46 by Stefania Gaianigo


the patch solves the issue of image uploading but still remain the issue of the folder creation, if you try to create a folder within a folder, it is created in the root image folder
Posted on 5 May 2014, 16:08 by Niels van der Veer

Patch at pull request ( works fine for file upload.

But still problem with creating folders.

I tried this:

- folder 1

- - <try to create folder 2, but it will be created in the root>

BUT when you upload a file in folder 1, everything works fine, like this:


- folder 1

- - file.jpg

- - folder 2

And than upload a file in folder 2 and you can create folder 3 inside folder 2 etc.
Posted on 6 May 2014, 4:01 by Leo Lammerink

Confirmed bahavior with creating nested categories. They do endup in root as well. I posted an update to the Github. Removed the first succesful test since this is part of the problem
Posted on 6 May 2014, 5:22 by Thomas Hunziker

Apparently the hidden "folder" field isn't updated properly when traversing folders. Thus the value is empty when the form is sent. The inital value of this field is taken from the model state.

Funny enough, the folder is also passed in the URL request, and there it seems to be correct. The PR reads the folder from there and thus it works. But imho we should either fix the hidden field or remove it. Both would solve the issue as well :)
Posted on 6 May 2014, 6:02 by Leo Lammerink

Anything in code we do not need should be illiminated if possible I would suggest so +1 to remove
Posted on 7 May 2014, 12:08 by Volkmar Schlothauer

Here's another a fix or Re:Later for "but still remain the issue of the folder creation, if you try to create a folder within a folder, it is created in the root image folder".

a CSS class is missing to show the parent folder in grey uneditable INPUT (/administrator/components/com_media/views/media/tmpl/default.php)

a JQuery error in /media/media/js/mediamanager.js. value is assigned to the index of an INPUT-element in a collection instead to the INPUT-element (JQuery object) itself.

We've tested successfully (including this 2 fixes) with J!3.2.4 and 3.3.0

Posted on 7 May 2014, 12:14 by Volkmar Schlothauer

add to my last post. Fix in mediamanager.js needs browser cache refresh after changes in file.
Posted on 7 May 2014, 21:52 by Leo Lammerink

Volkmar, why not posting that on the Github? There's a pull request available at

We do centralize core patches?
Posted on 7 May 2014, 22:00 by Leo Lammerink

I personally would advise AGAINST impementing 'wild solutions' posted on a forum somewhere. The Joomla Bug Squad and PLT are working hard on this issue and a core patch will be available once the patch on the Github is merged
Posted on 8 May 2014, 8:12 by Thomas Hunziker

Please test PR

The solution from the german forum posted by Volkmar indeed fixes the issue and is actually the correct fix.
Posted on 8 May 2014, 8:45 by George Wilson

@test 3575 works as expected
Posted on 8 May 2014, 9:26 by George Wilson

2 good tests on 3575 (I've tested again with Thomas' copy/paste error). RTC.
Posted on 8 May 2014, 10:05 by Astrid van Eerd

@test 3575 works now.

Posted on 8 May 2014, 10:20 by Leo Lammerink


Confirm..... Looks like ready to be merged. Nice one Volkmar

We have 3 tests confimed

Posted on 8 May 2014, 10:54 by Thomas Hunziker

Merged PR 3575.
Thanks all for the help and testing!
Posted on 14 May 2014, 5:57 by Anto Kefi

I have the same problem with media manager since I updated to Joomla 3.3
Posted on 14 May 2014, 6:44 by Thomas Hunziker

It will be fixed with Joomla 3.3.1.
Posted on 21 May 2014, 10:09 by Don Cranford

This fix works for me. Thanks.
Posted on 30 May 2014, 5:05 by Rob van Baal

And another positive confirmation: The scheduled fix works for both files upload and directory creation.
Posted on 7 Jun 2014, 7:59 by mike swanepoel


Replacing the 3.3.0 mediamanager.js file with the 3.2.3 version of the same file seems to resolve the problem. I have experienced no problems using this work around as I can create subfolders and upload into any designated folder.
Posted on 29 Sep 2014, 5:02 by Michael Guthrie

Hi All

Having discovered this porblem on a site we manage after upgrading to Joomla 3.3.0, I find myself at this tracker. I upgraded to 3.3.4 and the problem persists and I have also confirmed that the 3575 referenced patch has been applied.

I am able to create a new folder in images, but when I browse to the new folder, and then upload, the image goes to root images folder rather than to the subfolder.

Files and folders permissions were fixed with latest akeeba admin tools to no avail.


Posted on 29 Sep 2014, 7:19 by Tobias Zulauf

Hi Michael,


i can't confirm this issue on 3.3.4 so please clear your cache (Joomla and Browser) and fix your database. If you can confirm this also in a new install of 3.3.4 than please open a new Tracker on this Tracker is not longer monitored.
Posted on 30 Sep 2014, 6:59 by Michael Guthrie

Hi Tobias

Thanks for your reply. I can confirm that it was indeed browser cache.

Thanks again.