Expand my Community achievements bar.

SOLVED

DAM limit file size

Avatar

Level 6

Hi,

I have a requirement to limit the max file size of assets uploaded to DAM. 

I found this possible solution:

http://experience-aem.blogspot.com.br/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upl...

But it is related to classicUI, and I'd like to restrict that for all interfaces(Touch, Classic, WebDav.), is this configurable? Does anybody have some suggestions for this requirement?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi franciscoribeir

Yes, we can configure the Size limit of the assets.

Please find below the way of doing so:-

  1. In AEM, touch Tools CRXDE Lite.
  2. In the CRXDE Lite page, in the directory window on the left, navigate to /jcr_root/apps/dam.
  3. You may need to touch the >> icon to see the directory window.
  4. In the /jcr_root/apps/dam folder, use the Create(if not present) drop-down list to create a node with the following directory structure:
    /gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload (it may be already present).
  5. When you are finished creating the node, the full path appears as the following:
  6. /jcr_root/apps/dam/gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload
  7. Select the fileupload node, then in the Properties tab, enter the following property value:
  8. {sizeLimit : "32212254720"}
  9. “chunkUploadMinFileSize property”:- The size above which an asset is considered a large asset.  You can configure the system to consider assets above 30 Mb (instead of 50 Mb) in size as large assets. In other words, the progress bar appears when assets above 30 Mb in size are uploaded.
  10. In the upper-left of the CRXDE Lite page, touch Save All.

 

Reference Links

1. https://docs.adobe.com/docs/en/aem/6-0/author/assets/managing-assets-touch-ui/managing-video-assets....

2. https://docs.adobe.com/docs/en/aem/6-1/author/assets/managing-assets-touch-ui.html

 

This is the way to configure the limit of assets.

I hope this will solve your problem.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

5 Replies

Avatar

Correct answer by
Administrator

Hi franciscoribeir

Yes, we can configure the Size limit of the assets.

Please find below the way of doing so:-

  1. In AEM, touch Tools CRXDE Lite.
  2. In the CRXDE Lite page, in the directory window on the left, navigate to /jcr_root/apps/dam.
  3. You may need to touch the >> icon to see the directory window.
  4. In the /jcr_root/apps/dam folder, use the Create(if not present) drop-down list to create a node with the following directory structure:
    /gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload (it may be already present).
  5. When you are finished creating the node, the full path appears as the following:
  6. /jcr_root/apps/dam/gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload
  7. Select the fileupload node, then in the Properties tab, enter the following property value:
  8. {sizeLimit : "32212254720"}
  9. “chunkUploadMinFileSize property”:- The size above which an asset is considered a large asset.  You can configure the system to consider assets above 30 Mb (instead of 50 Mb) in size as large assets. In other words, the progress bar appears when assets above 30 Mb in size are uploaded.
  10. In the upper-left of the CRXDE Lite page, touch Save All.

 

Reference Links

1. https://docs.adobe.com/docs/en/aem/6-0/author/assets/managing-assets-touch-ui/managing-video-assets....

2. https://docs.adobe.com/docs/en/aem/6-1/author/assets/managing-assets-touch-ui.html

 

This is the way to configure the limit of assets.

I hope this will solve your problem.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 6

Hi kautuks99302102,

Thanks for your reply :)

Do you know if this settings works for WebDav or the Companion App? Or is it only for the touch ui?

Thanks.

Avatar

Administrator

Hi franciscoribeir

Limit on AEM side 

Please find below the way of doing so:-

  1. In AEM, touch Tools CRXDE Lite.
  2. In the CRXDE Lite page, in the directory window on the left, navigate to /jcr_root/apps/dam.
  3. You may need to touch the >> icon to see the directory window.
  4. In the /jcr_root/apps/dam folder, use the Create(if not present) drop-down list to create a node with the following directory structure:
    /gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload (it may be already present).
  5. When you are finished creating the node, the full path appears as the following:
  6. /jcr_root/apps/dam/gui/content/assets/_jcr_content/body/assetscontent/header/items/items/fileupload
  7. Select the fileupload node, then in the Properties tab, enter the following property value:
  8. {sizeLimit : "32212254720"}
  9. “chunkUploadMinFileSize property”:- The size above which an asset is considered a large asset.  You can configure the system to consider assets above 30 Mb (instead of 50 Mb) in size as large assets. In other words, the progress bar appears when assets above 30 Mb in size are uploaded.
  10. In the upper-left of the CRXDE Lite page, touch Save All.

 

Limit on Client Machine

 

Enter regedit in the Windows 7 input prompt. 

In the registration editor that opens, navigate to the menu item HKEY_LOCAL_MACHINE Beachte auch SYSTEM Beachte auch CurrentControlSet Beachte auchservices Beachte auch WebClient Beachte auch Parameters. Right click on the item FileSizeLimitInBytes and select Change.

 

Change the display mode to Decimal and enter 4294967295 (you can set your limit here). This corresponds exactly to 4 GB, the maximum size dictated by the protocol.

 

The process mentioned above should work for companion app too.

 

Option 2

You can write your custom asset uploading as an OSGI bundle. In this OSGI you can create a logic to preventing file uploading with respect to its size.

 

Please have a look at this article. This would help you. Link: - https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

 

 

I hope this would answer your question.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Administrator

Hi franciscoribeir

This is the Limit for Touch UI. 

If you would like to change limit of WebDev, then youe would need to make following changes.:-

Enter regedit in the Windows 7 input prompt. 

In the registration editor that opens, navigate to the menu item HKEY_LOCAL_MACHINE Beachte auch SYSTEM Beachte auch CurrentControlSet Beachte auchservices Beachte auch WebClient Beachte auch Parameters. Right click on the item FileSizeLimitInBytes and select Change.

 

Change the display mode to Decimal and enter 4294967295 (you can set your limit here). This corresponds exactly to 4 GB, the maximum size dictated by the protocol.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 6

Hi Kautuk,

Thanks. So in this case we can not set this limit on AEM itself. We need to do that on the client machine, right? 

Do you know if there is any way to put this limit on AEM itself, if there is any configuration?

This change you mentioned for WebDav works also for the companion app?

Thanks