How I can add this input:
<input name="_token" type="hidden" value="{!! csrf_token() !!}" />
to FineUploader without creating a form?
You have probably solved your problem since but this might help other people coming accross this thread. The following worked for me :
in <head>
:
<meta name="csrf-token" content="{{ csrf_token() }}" />
Then initialize you fineUploader as follow :
var manualuploader = new qq.FineUploader({
request: {
endpoint: "path/to/your/server",
customHeaders: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With