How to upload images to folders with CarrierWave

Follow

Comments

4 comments

  • Avatar
    Sanson

    Do I must define a public_id with server-side? I only wanna create a folder and mantain the default public_id.

    Is it possible?

  • Avatar
    Nadav Ofir

    Hi, you can use our random_public_id method to generate a random public ID for the upload request, e.g.:

      def public_id
        return "my_folder/" + Cloudinary::Utils.random_public_id;
      end  
    
  • Avatar
    Pedro Henrique Knoll Giacometo

    How can I use the

    <%= f.cl_image_upload(:image, :folder => "my_folder") %>

    with simple_form?

  • Avatar
    Maor Gariv

    Hi,
    Sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore but if you have any further questions, feel free to reach out by opening a new support ticket -
    https://support.cloudinary.com/hc/en-us/requests/new

Please sign in to leave a comment.