onload return 404 at preview
mohammadrezahayati opened this issue · 1 comments
Hi, I try to return response in onload method at the first upload file and return response successfully but preview gave me 404 but response and return and setFiles initialized please help me
server={{
url: ${process.env.REACT_APP_URL}
,
timeout: 1000,
process: {
url: /api/image/upload
,
method: 'POST',
onload: (response) => {
setFiles([...files, response]);
},
},
revert: /api/image/destroy
,
headers: {
'Authorization': Bearer ${cookie.get('token')}
,
},
}}
We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.
If your issue can be classified as an integration question or a question about specific features of FilePond we ask you kindly to submit it on Stack Overflow.
We will be able to more closely look at your issue once the issue template has been filled out. The issue will be closed until the above is addressed.
Please leave a comment after you've updated the issue.