“What I can do is check the fill size before upload by, maybe doing it the same way as core WP does.”
It will be a perfect solution!
Thank you