How to get file size after file upload?

I am new to filament. I have requirement where after the file upload is complete. The 'Size' field in the form should have the value.
Can someone explain how do I achieve this in Filament or what approach to use?
filament-form.png
Solution
You'd have to use ->afterStateUpdated() on the file field then get the data and set it
Was this page helpful?