fix: move `build directory to resources/shop`
This commit is contained in:
21
resources/shop/js/include/form/upload.js
Normal file
21
resources/shop/js/include/form/upload.js
Normal file
@@ -0,0 +1,21 @@
|
||||
function initFileInputImage(images, uploadRoute)
|
||||
{
|
||||
$(".file").fileinput({
|
||||
uploadUrl: "/file-upload-batch/2",
|
||||
allowedFileExtensions: ['jpg', 'png', 'gif'],
|
||||
overwriteInitial: true,
|
||||
showRemove: true,
|
||||
frameClass: '',
|
||||
initialPreviewAsData: false,
|
||||
maxFileSize: 10000,
|
||||
removeFromPreviewOnError: true,
|
||||
initialPreview: images,
|
||||
layoutTemplates: {
|
||||
footer: ''
|
||||
},
|
||||
previewTemplates: {
|
||||
image: '<img src="{data}" class="kv-preview-data file-preview-image img-fluid" title="{caption}" alt="{caption}" {style}>\n',
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user