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

SOLVED

AEM DAM File Uploading

imadullakhan
Level 3
Level 3

Hi @All,

 

Am working in DAM content, i wanted to restrict the image size in DAM while uploading the image. It should not cross the MAX and Min Limit of the image. how to restrict the image size?

1 Accepted Solution
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

If you want to restrict the Asset Upload size in Touch UI, then you need to customize the OOTB Fileupload feature as mentioned in this article:-

 

To configure a higher file size limit, perform the following steps in the /apps directory.
In AEM, tap Tools > General > CRXDE Lite .
In the CRXDE Lite page, in the directory window on the left, navigate to /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload . To see the directory window, touch >> icon.
From the toolbar, tap Overlay Node . Alternatively, select Overlay Node from the context menu.
In the Overlay Node dialog, tap OK .

Refresh the browser. The overlay node /jcr_root/apps/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload is selected.
In the Properties tab, enter the appropriate value in bytes to increase the size limit to the desired size. For example, enter the following value to increase the size limit to 30 GB:
{sizeLimit : "32212254720"} -- Change this as per your need
From the toolbar, tap Save All .
In AEM, tap Tools > Operations > Web Console .
On the Adobe Experience Manager Web Console Bundles page, under the Name column of the table, locate and tap Adobe Granite Workflow External Process Job Handler .
In the Adobe Granite Workflow External Process Job Handler page, set the seconds for both Default Timeout and Max Timeout fields to 18000 (five hours).
Tap Save .
If you are using DM as well, then you need to change DM workflows as well:-

In AEM, tap Tools > Workflow > Models .
On the Workflow Models page, select Dynamic Media Encode Video , then tap Edit .
On the Workflow page, double-tap the Dynamic Media Video Service Process component.
In the Step Properties dialog box, under the Common tab, expand Advanced Settings .
In the Timeout field, specify a value of 18000 , then tap OK to return to the Dynamic Media Encode Video workflow page.
Near the top of the page, below the Dynamic Media Encode Video page title, tap Save .

 

https://docs.adobe.com/content/help/en/experience-manager-64/assets/managing/managing-video-assets.h...

View solution in original post

6 Replies
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

If you want to restrict the Asset Upload size in Touch UI, then you need to customize the OOTB Fileupload feature as mentioned in this article:-

 

To configure a higher file size limit, perform the following steps in the /apps directory.
In AEM, tap Tools > General > CRXDE Lite .
In the CRXDE Lite page, in the directory window on the left, navigate to /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload . To see the directory window, touch >> icon.
From the toolbar, tap Overlay Node . Alternatively, select Overlay Node from the context menu.
In the Overlay Node dialog, tap OK .

Refresh the browser. The overlay node /jcr_root/apps/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload is selected.
In the Properties tab, enter the appropriate value in bytes to increase the size limit to the desired size. For example, enter the following value to increase the size limit to 30 GB:
{sizeLimit : "32212254720"} -- Change this as per your need
From the toolbar, tap Save All .
In AEM, tap Tools > Operations > Web Console .
On the Adobe Experience Manager Web Console Bundles page, under the Name column of the table, locate and tap Adobe Granite Workflow External Process Job Handler .
In the Adobe Granite Workflow External Process Job Handler page, set the seconds for both Default Timeout and Max Timeout fields to 18000 (five hours).
Tap Save .
If you are using DM as well, then you need to change DM workflows as well:-

In AEM, tap Tools > Workflow > Models .
On the Workflow Models page, select Dynamic Media Encode Video , then tap Edit .
On the Workflow page, double-tap the Dynamic Media Video Service Process component.
In the Step Properties dialog box, under the Common tab, expand Advanced Settings .
In the Timeout field, specify a value of 18000 , then tap OK to return to the Dynamic Media Encode Video workflow page.
Near the top of the page, below the Dynamic Media Encode Video page title, tap Save .

 

https://docs.adobe.com/content/help/en/experience-manager-64/assets/managing/managing-video-assets.h...

View solution in original post

imadullakhan
Level 3
Level 3
Hi @Shashi_Mulugu thanks for the info, i had set the maximum limit size of the image {sizeLimit : "32212254720"}, and also i want to set the minimum size of the image. how to set the minimum size of the image. which property i have to use for that.
Shashi_Mulugu
Community Advisor
Community Advisor

As of now i dont think we have any way to set minimum size limit . If you want you can customize the below Clientlib by adding extra properties to same fileupload.

/libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload.js

Category:- dam.gui.coral.fileupload

imadullakhan
Level 3
Level 3
Hi @Shashi_Mulugu What properties need to configure on /fileupload.js. Can you please tell me elaborately. What extra properties need to there.
Theo_Pendle
Community Advisor
Community Advisor
Can I just ask what your use-case is for a minimum size?
imadullakhan
Level 3
Level 3
When am uploading an image in dam it should not cross the specified limit and it should be there in specified limit so the reason am asking to maximum size i got it. For Minimum size what are all the property need to add. Can you please let me know briefly.