I am trying to get the values of multiple select boxes and file inputs using jquery. I am using Jquery Multifield plugin for appending same fields multiple times.So far i am unable to get all the …
Tag: jquery-plugins
How do i pass csrf token with this file upload
I have this html: And this jquery plugin to upload file: And the route under web middleware group: And whenever i try to upload the file i got the familiar error: TokenMismatchException in VerifyCsrfToken.php Answer First add this code on your form <input type=”hidden” id=”csrf_token” name=”_token” value=”{{ csrf_token() }}”> this adds a csrf token field on your form using laravel’s