How to compare the size of the asset uploaded with the value from my custom OSGi configuration?
I have created an OSGi Config as follows:

I am reading the values like:

Now, what I want to do is I want to compare the size of the asset file uploaded with assetSize value [from OSGi] when activated = true. And if size of asset file > assetSize, then the asset won't get uploaded to DAM and will show a error message.