Sopamo / laravel-filepond

Laravel backend module for filepond uploads
MIT License
204 stars 54 forks source link

Files are empty #65

Closed GuidoBelluomo closed 2 years ago

GuidoBelluomo commented 2 years ago

FilePond seems to be uploading files correctly, except when they're saved in the temporary folder they are 0 bytes. I don't know what to provide you in terms of my configuration that I'm using (it's literally the one from the readme) but I'm open to suggestions.

GuidoBelluomo commented 2 years ago

I had to publish the configuration file as I'm using a different input name in my project. For everyone reading with the same issue, double check that!

chrisvasey commented 1 year ago

This helped me catch where my issue was too! Many thanks.

For those using https://github.com/pqina/react-filepond, updating: 'input_name' => 'file value to files in config/filepond.php fixed this for me.

As @GuidoBelluomo suggested above, you may need to publish this config file using: php artisan vendor:publish --provider="Sopamo\LaravelFilepond\LaravelFilepondServiceProvider"