I am using fine uploader plugin to upload images. The image upload is working fine. What I am trying to do is when the page is refreshed after image upload fine uploader should show previously uploaded images.
Here is my code..
$('#accordion').on('shown.bs.collapse', function () {
activeShopId1 = $(".collapse.in").attr("id");
$('#' + activeShopId1 + ' #fine-uploader-gallery' + '.single-image').fineUploader({
template: 'qq-template-gallery',
request: {
endpoint: 'upload_internal_image'
},
validation: {
allowedExtensions: ['jpeg', 'jpg', 'gif', 'png'],
itemLimit: 1
},
messages: {
tooManyItemsError: 'You can only add 1 image'
},
deleteFile: {
enabled: true,
forceConfirm: true,
endpoint: 'delete_internal_image'
},
callbacks: {
onSubmit: function (id, fileName) {
this.setParams({shop_id: shopId4Map});
},
},
});
})
Thanks in advance.