Retrieve the size of a file on the data card or in dispatch

Hello
To prevent users from archiving files that are too large (or at least alert them) I would like to be able to use the file size to put a condition on it, or use Dispatch to prevent archiving or transition.
My problem is that I can't seem to figure out how to recover this information. In dispatch the category ' Static string / File variable ' does not suggest the file size.
Has anyone managed to do something similar?

PS: I'm on SW PDM2020 and dispatch 28050080