Skip to main content

How to upload images in specific folder created by cloudinary using MediaManager?

Comments

1 comment

  • Aditi Madan

    Hi Sudarshan,

    You can pass the folder name as the option when using MediaManager or you could specify it in your upload preset under folder.

    Here is an example:

    String requestId = MediaManager.get().upload("dog.mp4")
       .unsigned("preset1")
       .option("resource_type", "video")
       .option("folder", "my_folder/my_sub_folder/")
       .option("public_id", "my_dog")
       .option("overwrite", true)
       .dispatch();
     
    Thanks,
    Aditi
    0

Post is closed for comments.