The revert request is only sent when the file is uploaded completely.
I want to send the revert request if the user cancels the file while it's still uploading.
The Folder ID is returned from first POST request so we have the Folder ID.
I have looked through documentations and GitHub and found this GitHub pull 757 but don't know how to do it.
Everything works I just want to send the revert when the user cancels.
Here is my code
<input type="file" name="files" id="files" multiple>
<script>
FilePond.create(document.getElementById("files"), {
name: 'files',
allowMultiple: true,
chunkUploads: true,
chunkSize: 1024 * 1024 * 50, // 50MB
chunkRetryDelays: [],
maxFileSize: 1024 * 1024 * 1024, // 1 GB
server: {
url: '{{ url('upload') }}',
method: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content'),
}
}
});
</script>