Expand my Community achievements bar.

Limit filesize of assets into DAM?

Avatar

Level 2

Hey folks-

We're trying to limit the filesize of assets uploaded into the DAM.

I saw this Managing Video Assets about raising the limit... but we're trying to lower the limit. So far - I've tried the instructions in the article, without any luck. Any ideas?

Below is what I've done (this should limit uploads to 200 bytes as I understand, but no dice)... Note that I'm trying this on AEM 6.4.3 on my local machine.

Screen Shot 2019-02-18 at 10.53.04 AM.png

4 Replies

Avatar

Level 10

From what screen/url did you test that?

Try to overlay this and test on '/content/dam' url -

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload

P.S. I tested with this and it worked fine

Avatar

Community Advisor

I tried same with Coral and Granite fileupload , not able to limit the size of assets.

FileUpload — Granite UI 1.0 documentation

FileUpload — Granite UI 1.0 documentation 



Arun Patidar

Avatar

Level 10

If the software does not correspond to the docs here:

FileUpload — Granite UI 1.0 documentation

which says size can be set -- there is a software bug. Please open a ticket so this can be fixed.

Avatar

Level 3

We may not need to do that on /content/dam node, we need to overlay the node "/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload" to /apps/ and then update the sizeLimit property to whatever the value you want to set the limit to and the value that you set will be in bytes. That will work.