© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
yohanan

Set FileUpload value from another field

how can i set FileUpload value from another field? i'm trying to set an image to FileUpload field but it's not working.
i've got this error: "foreach() argument must be of type array|object, string given."

actualy i'm doing it like: $set('image', $imagePath) and it's wrong.

how can i do this?
Solution
try
$set('your_file_field', ['new_file.xxx'])
$set('your_file_field', ['new_file.xxx'])
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

Value from another field
FilamentFFilament / ❓┊help
3y ago
Set value of another field from within default
FilamentFFilament / ❓┊help
3y ago
How to set value to createOptionForm from another field?
FilamentFFilament / ❓┊help
2y ago
Insert value from one field to another
FilamentFFilament / ❓┊help
3y ago