pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.21k stars 830 forks source link

[Bug] Upload image using Filepond in laravel livewire #1002

Closed Alinawaz-786 closed 2 months ago

Alinawaz-786 commented 2 months ago

Is there an existing issue for this?

Have you updated FilePond and its plugins?

Describe the bug

I want to try uploading an image. The image preview shows, but when the form is submitted, I cannot get the image path and the image is not uploaded to storage. Here is my line of code:

        **<x-forms.filepond label="Image" wire:model="mform.image" name="image" id="image" required />**

In the component, I get a null value instead of the picture. Screenshot 2024-09-10 084644 Screenshot 2024-09-10 084728 image image

Reproduction

Filepond in laravel livewire

Environment

- Device:
- OS:
- Browser:
Alinawaz-786 commented 2 months ago

I need help with sample code

rikschennink commented 2 months ago

Hi, I'm sorry but as requested in the issue template you're going to have to ask questions on Stack Overflow.

In this case it's probably better to first look at the Laravel Livewire docs / GitHub repo.