This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Folder and subfolder uploads

Comments

3 comments

  • Official comment
    Avatar
    Stephen Doyle

    Hi Salou,

    Yes, you can set the folder path on the uploads by creating a value for the "folder" parameter , where your code chooses that value based on the current date or some other requirement that you have

    If you encounter any difficulties with that please let us know

    Regards,
    Stephen

    Comment actions Permalink
  • Avatar
    SALOU

    Hi, 

    Thank you for your reply. 

    I had already created a value for creating a folder by date. But I can't figure out how to create the subfolder after this created value. 

     folder: formatDate(new Date()), 

    This works and create a folder with the date of the day. 

    But if I try to create a subfolder, it doesn't work. What's wrong with my code ?

     folder: formatDate(new Date()),/nameofsubfolder

     

    Thank you for your help ! 

    0
    Comment actions Permalink
  • Avatar
    Loic Verger Del Bove

    Hi Salou,

    It seems you are passing an integer as part of the `folder` and the concatenation seems to not work as well.

    Could you please try something like this?

    folder: "" + formatDate(new Date()) + "/nameofsubfolder"

    Thanks,

    Loic

    0
    Comment actions Permalink

Post is closed for comments.