How do I access the uploaded file?
I have 2 nearly identical forms on livewire components. In one of them, the file upload works fine and I get the TemporaryUploadedFile when I do
$this->form->getState()
. On the other one, I just get null.
I have this in my render method:
$this->form->fill($this->statement->attributesToArray());
and doing this in my save method:
document is just null. I feel like this was previously working, so I don't know what changed.
1 Reply
oh wait, i just moved the form fill to the mount method and now it's working. ugh.