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
BedrockMission!

Learn More

View all

Sign in to view all badges

Assets shared via Share Link download in separate folders

Avatar

Avatar
Validate 1
Level 3
DhirajAg
Level 3

Likes

12 likes

Total Posts

65 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
DhirajAg
Level 3

Likes

12 likes

Total Posts

65 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
DhirajAg
Level 3

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)