Hello
I’m not able to have 2 file upload working in a file, here is the architecture:
- a blade file with 2 livewire call
<livewire:profile-picture >
<livewire:profile-allpictures >
in profile-picture.blade:
<x-filepond :inputname="'pict'" wire:model="file" />
in profile-allpictures.blade:
<x-input.filepond :inputname="'allpict'" wire:model="files" multiple />
the filepond component is the one available in surge
<div wire:ignore x-data x-init=" FilePond.registerPlugin(FilePondPluginImagePreview); FilePond.setOptions({ allowMultiple: {{ isset($attributes['multiple']) ? 'true' : 'false' }}, labelIdle:'Veuillez sélectionner un fichier', labelFileProcessingComplete: 'Upload terminé', server: { process: (fieldName, file, metadata, load, error, progress, abort, transfer, options) => { @this.upload('{{ $attributes['wire:model'] }}', file, load, error, progress) }, revert: (filename, load) => { @this.removeUpload('{{ $attributes['wire:model'] }}', filename, load) }, }, }); FilePond.create($refs.input); " > <input type="file" name="{{$inputname}}" x-ref="input"> </div>
My issue is that i can correctly see the request with the answer; the model file (or files) is NULL even if the file is correctly uploaded (in livewire_tmp)
BUT i don’t have the livewire div updated…
I’ve added few livewire:key without any success…
Do you have any idea?
Christophe