How to upload images to folders with CarrierWave




  • Avatar
    Maicon Sanson Penna

    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;
  • Avatar
    Pedro Henrique Knoll

    How can I use the

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

    with simple_form?

  • Avatar
    Maor Gariv

    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 -

Please sign in to leave a comment.