What seems to be the problem: File Input not cleared. I want it to go back to saying No file chosen after upload.
Steps to Reproduce: Create file input field. Upload a file. Save the file and set the public property that is wire:model
with the input field to null. Confusingly, client still shows the previously selected filename.
Are you using the latest version of Livewire: 1.2
Do you have any screenshots or code examples:
Form;
<input wire:model="newimage" name="newimage" type="file" class="form-control">
Component;
if($this->newimage) {
$slide->image = $this->newimage->store('/','slides');
}
$slide->save();
$this->newimage = null;