Closed aaronmeder closed 1 year ago
Hey, filepond (or laravel-filepond) by default expects the name attribute of your input element to be file
not files
.
You can configure that behaviour by running: php artisan vendor:publish --provider="Sopamo\LaravelFilepond\LaravelFilepondServiceProvider"
and then changing the input_name
config to something else (files
in your case). I think that might fix your issue.
@Sopamo Thanks a lot, that resolved my issue!
Hi everyone
I have problems getting laravel-filepond to work, and not sure if I am missing a piece that needs to be added.
I have it working so far as that filepond is activated on my frontend and when uploading it shows a green result. Also a file gets created in storage/app/filepond - but it is 0 bytes of size. The app is super minimal, started on Laravel 9 & breeze.
Here is everything that I have in my app related to laravel-filepond:
Requirements composer.json:
(also I am loading the css file)
My form containing filepond
resources/views/entry/create.blade.php
Import & Init Filepond resources/js/app.js:
resources/js/components/_filepond.js:
Controller for actually storing the entry and Filepod file app/Http/Controllers/EntryController.php
As described it creates a new file in storage/app/filepond/< e.g. CsLTVnTaV7h54PrZ> and also in the EntryController I am receiving that name in $path - that variable will echo filepond/CsLTVnTaV7h54PrZ.
So am not really sure if I've misunderstood how this should work 🤷🏻♂️
Would really appreciate someone helping out! Aaron