Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filepond multiple fille upload broken #475

Open
bardolf69 opened this issue Jul 9, 2023 · 4 comments
Open

Filepond multiple fille upload broken #475

bardolf69 opened this issue Jul 9, 2023 · 4 comments
Labels
invalid This doesn't seem right

Comments

@bardolf69
Copy link

  • Laravel Version: 10.14.1
  • PHP Version: 8.1.17
  • Splade JS Version (npm): 1.4.15
  • Splade PHP Version (composer): 1.4.15.1
  • Dev environment (OS, Sail/Valet/etc): Alpine linux running in a docker container on Google Cloud Run

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
Copy link

am0nn commented Jul 27, 2023

same issue here, do you solved it yet?

@bardolf69
Copy link
Author

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

@pascalbaljet
Copy link
Contributor

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
Copy link

Helped me! a thumbs up👍🩷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants