Assets shared via Share Link download in separate folders

Avatar

Avatar

DhirajAg

Avatar

DhirajAg

DhirajAg

13-10-2020

We are sharing multiple assets via share link. When the users visit the link he receives in his email and tries to download all the assets in the Share Link, all the assets are downloaded in separate folders. We have tried customizing the javascript at this location /libs/dam/gui/coral/components/admin/adhocassetshare/clientlibs/landingpage/js/landingpage.js with the property flatStructure = true but even then it does not work. Business requirement is that all assets inside Share Link should be downloaded as a flat hierarchy and no separate folders should be created per asset. 

path = uniquePaths;
        var url = "/libs/dam/gui/content/assets/assetlinkshare.html" + path[0] + ".assetdownload.zip/SharedContent.zip";
        url = Granite.HTTP.externalize(url);
        var params = {
            "sh": getUrlParameter("sh"),
            "path": path,
            "_charset_": "utf-8",
            "downloadAssets": "true",
            "downloadRenditions": "false",
            "downloadSubassets": "true",
            "flatStructure": "true",
            "licenseCheck": "false"
        };
        post(url, params);

 

Accepted Solutions (0)

Answers (0)