• Resolved janc76

    (@janciriack)


    I saw in an older post that a non-standard uploads folder was not supported about a year ago. Has anything changed on that issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AlanP57

    (@alanp57)

    You can use the UPLOADS define statement
    define( 'UPLOADS', 'blog/wp-content/uploads' );
    which is demonstrated in the Edit wp-config page, to move or rename your site’s uploads folder to a different location. However, it must remain under the wp-content folder as Media Library Folders looks for ‘wp-content’ when it is processing URLs.

    • This reply was modified 5 years, 7 months ago by AlanP57.
    Thread Starter janc76

    (@janciriack)

    Hmm… for me it seems to work even outside the wp-content folder with the define statemment of

    define( 'UPLOADS', 'media' );

    The only thing that doesn’t seem consistent is the name of the root folder still beeing ‘uploads’.

    This restriction is not addressed in the PRO version, is it?

    Plugin Author AlanP57

    (@alanp57)

    Both the free and the Pro work the same with the location of the uploads folder. It has not been tested with the uploads folder in that location.

    Was the new location and name of the uploads folder defined before installing Media Library Folders? If not, you should do a database reset with the Media Library Folders Reset plugin.

    Thread Starter janc76

    (@janciriack)

    The new location of the uploads folder was defined after the installation of MLF. Your proposal seems to work but I think I will stick with the default location if it is not officially supported.

    Hi, is it possible to have the uploads folder outisde the root installation?
    I mean, the website is installed in https://www.site1.com
    And i’d like the uploads folder to be in https://www.site2.com/uploads
    Thanks for your answers.
    Best,
    By the way, i’m using wp 5.2

    Plugin Author AlanP57

    (@alanp57)

    You should refer to the article, Editing wp-config.php. It explains how to change the location or name of the uploads folder. If you change the location of uploads, your current media library files will not be moved from their current location. Media Library Folders support changing the name or location of the uploads folder as long as it remains under ‘wp-content’, though one user reported that is seems to work even if it is not in the ‘wp-content’ folders, but we have not tested this configuration.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom upload folder’ is closed to new replies.