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

Limit filesize of assets into DAM?

ronaldd85054752
Level 2
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
Gaurav-Behl
Community Advisor
Community Advisor

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

Arun_Patidar
Community Advisor
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 

smacdonald2008
Level 10
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.

arvindk091986
Level 2
Level 2

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.