New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#33687] Fix: Cannot upload file to sub-folder in Media Manager #3551
Conversation
As I can't access the trackers (usual broken stuff) nor read german (should have paid more attention at school) how do I replicate this? |
See #32032 in the Feature tracker, not broken anymore! |
Just try uploading anything to a folder. |
@wilsonge So you can do the following:
Thanks. |
#test Confirm issue and resolution. |
For consistency would suggest '$this->input->post->get(' instead of '$this->input->get->get(' |
This depends if the folder is given in the URL (GET request) or is coming from the form data (POST) imho. The proposed code looks specifially in the URL while your suggestion would look in the form data. |
Not my line of expertise. Find it strange, both fields (return-url and folder) are hidden fields, one is taken from post, the other from get. Makes me wonder, especially when something doesn't work as expected. |
@test |
Test. The PR fixes the problem! |
@sovainfo has a valid point. There is a hidden There are also other places where this state is used, so I gess we may well have other bugs with that. |
The patch for File uploads works indeed. However the issue is also applicable for creating subfolders in the media manager. If you create a subdirectory it is placed in the root (I tested that) and not in the directory where you created the sub. I guess Thomas this is one of those places where it indeed bugs as well with that |
Weird, as reported, creating subfolders worked in my environment. |
creating sub folders works only fore me when I upload a file. Like I described in the tracker item: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33413 at 2014-05-05 23:08:58 |
Exactly the behavior I also experienced that's why I posted. I think
|
Here's another a fix or Re:Later for "If you create a subdirectory it is placed in the root (I tested that) and not in the directory where you created the sub".
We've tested all three fixes with J!3.2.4 and 3.3.0 Why ...get->get...? Because "folder=..." is added to the action URL by JavaScript, that's transmitted by GET.. |
The thing is that the current
|
Was able to create subfolders multiple levels deep. Also in other folders. Changed the statement into post and back to original. Made no difference, it kept working! So, I recreated a j33demo environment. Verified existance of the bug, it exists. Added ->get, could upload image. Could also create subfolder, but only after uploading image. Didn't test suggestion of ilovo brcause I don't like the folder in the url. Would like to have it in the post! |
Thomas, |
Fixed with PR #3575 |
Could anyone explain to me what a patch is. I'm struggling with the same issue as you all do. The Media Manager. The final step is: apply patch. But I don't know how to do that... |
Sounds like you need to apply #3575 using com_patchtester. |
Thanks for messaging! |
This issue is resolved. Updating to the lastest version of Joomla should fix this. If not, please open a new issue so it can get fixed. |
I have this version: Joomla! 3.4.1 Two weeks ago I was able to make a sub-folder, but now I can't anymore... |
Then you should update to 3.4.3 - which got released yesterday! |
OK, I see. Solved. Thaks a lot! |
Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33687&start=0
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33413&start=0
one more:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=33692
Fix based on (german):
http://www.joomlaportal.de/joomla-3-x-installation/309865-sammelthread-joomla-3-3-0-released-2.html#post1534645
http://www.joomla-bugs.de/forum/index.php?topic=582.0