Closed zusamarehan closed 5 years ago
I think this :server="this.server"
should be :server="server"
I believe that is not the issue. I have tried with the said solution. It's the same thing. There is no request on the network tab of chrome console.
Note: If there is any other solutions for sending additional request, please recommend.
I suggest adding a log statement inside the process
handlering and see if it runs, if so, the issue is with the axios call.
Yea I have done that. It logs up until axios call statement. Once it reaches the axios call it disappears.
Can you try with this function: https://pqina.nl/filepond/docs/patterns/api/server/#process-1
I have tried the function which you said, request is going now but to the wrong endpoint. I have given like this
request.open('POST', '/documents/upload');
Request URL: http://sbh.zrehan.com/
Request Method: POST
Status Code: 405 Method Not Allowed
Remote Address: 127.0.0.1:80
Referrer Policy: no-referrer-when-downgrade
As this problem is related to the XHR request and its implementation and not FilePond I'll close the issue.
You can find more info on XHR here: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
Summary
I am trying to use the
process
handler to configure my own server options when sending the request when the images is uploaded. But the request doesn't goes, the filepond frontend says uploading but there is actually nothing happening in the backend.How to reproduce
Expected behaviour
Send the request to the backend which is Laravel, with the
csrf-token
.Additional information
I actually need to just send
_token: randomToken
with the request, I don't want to change anything to the defaultprocess
functionality. Is there anything simpler?