Upload component : show an error if uploaded file is too large

Is there a way to catch whenever a user has tried to upload a file larger than allowed (via the Upload component max_size attribute) ? I would like to show my users the reason why nothing is happening.

Thanks!