Closed maqsudinamdar closed 4 years ago
The 422 status code is usually an indicator that the CSRF token is not present / not valid. Are you sure that the meta tag meta[name="csrf-token"]
actually exists? There is a laravel helper method to generate this field which you can use in your blade template. Of course you can also set the csrf token differently, it's just important that the X-CSRF-TOKEN
is set somehow.
i was getting the same error, and everything was set correctly according to the documentation. i solved it by adding a name attribute value to 'file' to my file input element.
@gordonnchy Thanks! Now uploading successfully. From <input type="file" name="filepond">
to <input type="file" name="file">
I'm using filepond to upload my files to the server using Laravel filepond Backend package.
However, while uploading files using Filepond Asynchronously using
XMLHttpRequest
. I noticed the following error pops up in the console.File:
Sopamo\LaravelFilepond\Http\Controllers\FilepondController.php
Below is the value getting from debugging the
$request
parameter in theupload
method.My
config\filepond.php
is the same as Sopamo/Laravel Package config file.Below is my configuration:
File:
routes\web.php
Thank you.