Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter archonia

    (@archonia)

    In uploader.php, adding the “folder” option seems to do the trick, but maybe somebody from Cloudinary can comment in case this has unwanted side-effects. If not, making this a configuration option would be great.

    class CloudinaryUploader {
    public static function build_upload_params(&$options)
    {
    $params = array(“timestamp” => time(),
    “folder” => ‘wp’, // Specify Cloudinary subfolder here

    Plugin Author Cloudinary

    (@cloudinary)

    The code that you altered won’t have any side-effects, however note that this will be applied for migrated images only (e.g., migrating local WordPress images to your Cloudinary account). If you wish to upload future images directly into a folder, you can go to your Cloudinary Media library, create a new folder and then you can click on it to go in and upload images directly into that folder. Alternatively, you can define a default upload preset to define a folder for all future uploads.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress images in separate folder’ is closed to new replies.