Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Assets shared via Share Link download in separate folders

Level 4
Level 4

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] + "";
        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);


0 Replies