Folks, how do I get the path of an uploaded image? (I want to edit this image by sending it to an API, then replace it)
FileUpload::make('image')
->afterStateUpdated(function ($state) {
$path = $state->getPath();
log('state', [$path]);
})
This just returns storage/app/livewire-tmp, and not the actual path of the uploaded image 😦
Thanks in advance!
Also, would it be better to do this after the form is submit, then replace it? I'm not sure..