{
$wire.upload(`componentFileAttachments.{{ $statePath }}`, file, () => {
$wire
.getFormComponentFileAttachmentUrl('{{ $statePath }}')
.then((url) => {
if (! url) {
return onError()
}
onSuccess(url)
})
})
},
})"
x-ignore
wire:ignore
{{ $getExtraAlpineAttributeBag() }}
>
@endif