Opened 18 years ago

Closed 18 years ago

#498 closed Bug (duplicate)

Resource Type directory being created when option is set to false in config.php for upload in File Browser

Reported by: testdummy Owned by:
Priority: Normal Milestone:
Component: File Browser Version: FCKeditor 2.4.2
Keywords: Cc:

Description

When I upload a file via the Upload tab for images, flash, etc., they go in the correct directory, "/images/" for me. However, when I click Browse Server to select an image, etc. it creates the resource type directory and shows that as the root dir for the uploads, even though I have the UseFileType option set to false in the config.php file in filemanager/upload/php. This also causes any files upload via this interface to be in the resource type directory rather than the true root dir I have set.

After looking at the source, I see that there is no option in the config.php file for filemanager/browser/default/connectors/php for the resource type use, and that the browser assumes you are using the resource type and proceeds. The function is question that needs fixed is ServerMapFolder in filemanager/browser/default/connectors/php/io.php to check to see if it should use resource dirs or not. Because there is no option in the config.php for the browser I guess there will have to be an optioned added.

If no one else gets to it first, I'll attach a fixed version as soon as I get some time make the changes. Work is very busy right now, so I might be a few days before I can get that. If anyone else wants to takes care of it, go for it. If not, then I'll post the fixed version and see if others can test it to make sure it works perfect. I'll also check all of the other connectors and make the modifications if necessary and post those as well.

As a related note to solve the issue from occurring in the future, the browser / upload systems should be combined into a single setup.

Change History (1)

comment:1 Changed 18 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: newclosed

This could be considered a DUP of the work Alfonso is doing in #454. If you have anything to add, please go to that bug.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy