F
Filament12mo ago
Masea

How can I ->fill() a FileUpload field?

I tried giving the path to the file, no help. Any way to do this?
2 Replies
Patrick Boivin
Patrick Boivin12mo ago
Not sure, but I think you need just the filename. Check what's in your DB already for some examples.
Masea
Masea12mo ago
My FileUpload doesn't know which directory it should upload the file to (I am manually uploading the file). So I am also passing the dir next to file name like this: x/1/filename No help though After filling the form, the form data of the field is an empty array btw