cancel
Showing results for 
Search instead for 
Did you mean: 

Quota of Picture

zyx974_
Confirmed Champ
Confirmed Champ

Hi,

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.

1 ACCEPTED ANSWER

zyx974_
Confirmed Champ
Confirmed Champ

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>
</extension>

Now size are equals.

View answer in original post

1 REPLY 1

zyx974_
Confirmed Champ
Confirmed Champ

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>
</extension>

Now size are equals.