Reputation: 467
I was implemented the jQuery filer on bootstrap modal.
Now, when first time modal user opens the modal and upload the images everything goes good but if user close the modal and now upload the image then the images are not uploaded. looking as we have to reset the filer before open the modal.
Any help will be helpful.
Upvotes: 0
Views: 156
Reputation: 35
I solved this by adding the filer on $.ready of the modal:
$('#filer_input').filer(function(default_options){
var Obj = {
showThumbs: true,
addMore: true,
clipBoardPaste:true,
captions:{
button: "Seleziona file",
feedback: "Seleziona files da caricare",
feedback2: "File selezionati",
drop: "Porta qui i file",
removeConfirmation: "Vuoi rimuovere questo file?",
errors: {
filesLimit: "Solo {{fi-limit}} file per ogni upload.",
filesType: "Sono consentite solo immagini.",
filesSize: "{{fi-name}} risulta troppo grande! Max size {{fi-fileMaxSize}} MB.",
filesSizeAll: "Files troppo grandi! Max size {{fi-maxSize}} MB.",
folderUpload: "Non puoi caricare cartelle. "
}
}
};
return Obj;
});
Upvotes: 0