问题是我使用InitialPreview查看了我先前在数据库中上传的图像。但是现在,当我提交表单时,它显示图像Input为空,它不包含图像。
我的代码:
$("#kv-explorer").fileinput({
'theme': 'explorer-fas',
language: language,
overwriteInitial: false,
uploadAsync: false,
initialPreview: [
@foreach ($images as $image)
window.location.origin + "/{{ $image->path }}",
@endforeach
],
initialPreviewConfig: [
@foreach ($images as $image)
{
type: 'image',
caption: "{{ $image->name }}",
key: "{{ $image->id }}"
},
@endforeach
],
fileActionSettings: {
showZoom: false,
showUpload: false,
showRemove: true
},
initialPreviewAsData: true,
initialPreviewFileType: 'image',
showUpload: false,
autoReplace: true,
purifyHtml: true,
});