© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
4 replies
Wellso
How do I access the meta information of uploaded files in the afterCreate hook?
Sorry if this is silly question
, I
'm trying to get this type of information in afterCreate
name
file
_name
mime
_type
path
disk
Solution
From
afterCreate()
afterCreate()
, you can access the uploaded file name in
$this->data['my_upload_field']
$this->data['my_upload_field']
. The disk and path should be a configuration thing known from context
. And you can get the mimetype in regular PHP
.
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
afterCreate - hook
F
Filament / ❓┊help
3y ago
How do I access the uploaded file?
F
Filament / ❓┊help
2y ago
Spatie Media not available in the afterCreate lifecycle hook
F
Filament / ❓┊help
10mo ago
How to add meta information to the head of Filament Pages?
F
Filament / ❓┊help
13mo ago