Quota of Picture


I use quota module (release 5.6.0-HF22) and i have problem with Picture document (JPG, PNG… files). The computed size for thoses files seems wrong.

When I upload a 777kB jpg file, DM shows effectively 777kB (Blob) but the quota module show, beneath the title, 2,41MBytes.

The others types of documents (Word, PDF…) don't suffer this problem.

0 votes

1 answers



Ok I found the reason why : by default quota compute the size of each view of the Picture (Original, thumbnail…).

To prevent this, you have to declare exclusions with this extension point :

<extension target="org.nuxeo.ecm.quota.size.QuotaSizeService" point="exclusions">
    <exclude path="views/*/content"></exclude>

Now size are equals.

1 votes