Announcement Regarding Support

Hello everyone, Charles here. Please read my post on changes to Media Cloud support and updates regarding Media Cloud in general.

Thanks!

Custom folder in digital ocean like in wordpress



  • Hello,

    I use this filter to change the url of the upoload folder of my images:

    add_filter(‘upload_dir’, ‘directorio_subida_fotos’);
    function directorio_subida_fotos( $param ){

    $post_id = get_the_ID();

    $mydir = “/” . $post_id;

    $param[‘path’] = $param[‘basedir’] . $mydir;
    $param[‘url’] = $param[‘baseurl’] . $mydir;

    return $param;
    }

    I want to put each photos in each folder by post id.
    It run well in my wordpres hosting.

    But not with your plugin with digital ocean, that put the photos in the month, year folder…

    Is any way to respect the wordpress folder in digital ocean?

    Thanks,
    Sergio



  • I have this same problem. I have explicitly disabled year/month folders for my site, but when I use Media Cloud, it forces my uploads back into year/month. Is there no way to disable this?


Log in to reply