AEM DAM File Uploading | Community
Skip to main content
imadullakhan
Level 3
May 15, 2020
Solved

AEM DAM File Uploading

  • May 15, 2020
  • 3 replies
  • 9502 views

Hi @1905403,

 

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

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.html#Configurationtouploadvideoassetsthatarelargerthan2GB

3 replies

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
May 15, 2020

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.html#Configurationtouploadvideoassetsthatarelargerthan2GB

imadullakhan
Level 3
May 15, 2020
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.
Theo_Pendle
Level 8
May 15, 2020
Can I just ask what your use-case is for a minimum size?
imadullakhan
Level 3
May 18, 2020
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.