How can I generate a flat ZIP with no folders hierarchy?

Follow

Comments

4 comments

  • Avatar
    Amit Kumar Verma

    while downloading zip with fl_flatten tag with duplicate images
    suffix is adding after image extension like abc.jpg-2 . so images are displaying with unknown extensions. please add suffix before extensions !!!

  • Avatar
    Nadav Ofir

    Thank you for pointing this out.
    This should be fixed by the beginning of next week.
    UPDATE: Issue was resolved.

  • Avatar
    Alex Caldas

    Hi Nadav,

    I wrote a quick script on .net to download all images scaled down to 100px, I'm able to download the zip, but I cannot figure out where to put the this flatten flag, could you please shade some light on this?

    Cloudinary cloudinary = new Cloudinary(account);

    Transformation transform = new Transformation();

    transform.Height(100);
    transform.Crop("scale");

    MultiParams parameters = new MultiParams("kiss");

    parameters.Format = "zip";
    parameters.Transformation = transform;

    MultiResult result = cloudinary.Multi(parameters);

    if (result.Uri != null)
    {
    string url = result.Uri.ToString();

    Response.Write("" + url + "");
    }

  • Avatar
    Nadav Ofir

    Hi Alex, our .NET libraries have not yet been updated with the flatten option.
    Furthermore, we're currently working on a significant upgrade to these libraries including support of the new generate_archive API.

Please sign in to leave a comment.