我正在使用filepond上传文件。当我用初始文件填充filepond对象时,它会发送新的请求以再次保存它。
<file-pond
ref="pond"
:imagePreviewMaxHeight="50"
imagePreviewTransparencyIndicator="grid"
labelIdle = 'Drag & drop your picture here'
stylePanelLayout = "circle"
accepted-file-types = "image/jpeg, image/png"
:allowFilePoster = "true"
:allowImagePreview = "true"
v-bind:server="{
url: base_url,
timeout: 7000,
process: {
url: '/attachments',
method: 'POST',
headers: {
'X-CSRF-TOKEN':token
},
withCredentials: false,
onload: onResponse,
},
revert: '/attachments/'+form.attachment_id // or null
}"
:files="myFiles"
>
</file-pond>
使用MyFiles对象填充已保存的文件。现在,它发送发布请求以保存初始数据。已保存。如何解决这个问题。在此先感谢