© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Sujay Barma

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
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get size of file in file upload
FilamentFFilament / ❓┊help
3y ago
file upload size
FilamentFFilament / ❓┊help
3y ago
Get image size from file upload
FilamentFFilament / ❓┊help
3y ago
How to increase Max file upload size?
FilamentFFilament / ❓┊help
15mo ago