如何将服务器ID保存到文件池对象中。用户从Filepond文件输入中删除文件时,我需要从服务器删除文件。如何实现这一点,我正在使用Vue js。
<file-pond v-bind:server="{
url: base_url,
timeout: 7000,
process: {
url: '/attachments',
method: 'POST',
headers: {
'X-CSRF-TOKEN':token
},
withCredentials: false,
onload: onResponse,
},
// revert: '/attachments/'+id// or null
// revert: null
}" :allow-multiple="true" ref="pond"
:image-preview-max-height="100"
image-preview-transparency-indicator="grid"
accepted-file-types="image/jpeg, image/png"
@removefile="removefile">
</file-pond>
谢谢!