WordPress.org

Ready to get started?Download WordPress

Forums

CKEditor For WordPress
[resolved] Concerning the subdirectories in wp-content/uploads (4 posts)

  1. MathiasAeschlimann
    Member
    Posted 2 years ago #

    I use the built-in file browser. Uploaded files go to a subdirectory, e.g. images to /images. Yet the native wp media library does not use a subdirectory system based on such categories.

    So I

    a ) can't see files uploaded with the CKEditor filebrowser in the media library

    b) can't see files uploaded with the media library in the CKEditor file browser.

    This doesn't make sense, so I guess I must be doing something wrong. Maybe somebody could help me.

    Would CKFinder resolve this issue?

    http://wordpress.org/extend/plugins/ckeditor-for-wordpress/

  2. michal
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    @MathiasAeschlimann you can change this behaviour for built-in filebrowser by changing few lines in wp-content/plugins/ckeditor-for-wordpress/filemanager/connectors/php/config.php file.
    Just replace this lnes 125 and 126

    $Config['FileTypesPath']['Images'] = $Config['UserFilesPath'] . 'image/' ;
    $Config['FileTypesAbsolutePath']['Images']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;

    to

    $Config['FileTypesPath']['Images'] = $Config['UserFilesPath']  ;
    $Config['FileTypesAbsolutePath']['Images']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'] ;

    In this way images will be uploaded to main WP upload directory.
    You can also change this for other resource types.
    Hope this helps you.

  3. MathiasAeschlimann
    Member
    Posted 2 years ago #

    Hey, thank you. Will this file get overwritten when I update the plugin?

  4. michal
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, you should backup this file and change it after update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic