protonemedia / laravel-splade

💫 The magic of Inertia.js with the simplicity of Blade 💫 - Splade provides a super easy way to build Single Page Applications (SPA) using standard Laravel Blade templates, and sparkle it to make it interactive. All without ever leaving Blade.
https://splade.dev
MIT License
1.47k stars 112 forks source link

Filepond multiple fille upload broken #475

Open bardolf69 opened 1 year ago

bardolf69 commented 1 year ago

Description:

Unable to use filepond multiple as it results in a script error

protone-media-laravel-splade.js:4196 Uncaught TypeError: t.push is not a function
    at protone-media-laravel-splade.js:4196:13
    at Array.forEach (<anonymous>)
    at Proxy.addFiles (protone-media-laravel-splade.js:4195:11)
    at onaddfile (protone-media-laravel-splade.js:4119:106)
    at exposeEvent (filepond.esm.js:8867:13)
    at filepond.esm.js:8883:29

Steps To Reproduce Issue:

Use a file upload set for filepond and multiple as below.

<x-splade-file class="py-4" name="css" multiple filepond accept="text/css, text/plain" />
am0nn commented 1 year ago

same issue here, do you solved it yet?

bardolf69 commented 1 year ago

no as a work around I have just stopped using the filepond for multiple uploads

pascalbaljet commented 1 year ago

You need to pass the name as an array (css[]):

<x-splade-file class="py-4" name="css[]" multiple filepond accept="text/css, text/plain" />
muhsinazmal9 commented 8 months ago

Helped me! a thumbs up👍🩷