El siguiente script vuelve a cargar la página antes de cargar todos los archivos. Puedo administrar cargar todos los archivos si no hay duplicado. Pero no con el cuadro de confirmación de bootbox.
<script language="javascript"> //This function is called on drop event to upload multiple files function file_uploads(files_obj, tocType) { if(files_obj != undefined) { var fileArr = []; for(i=0; i<files_obj.length; i++) { var FName = files_obj[i].name.toUpperCase(); //validate_duplicate_file function make an ajax call to see if file already exist in Database var IsDuplicate = validate_duplicate_file(files_obj[i], tocType); if(IsDuplicate > 0){ //If file already exist it will ask for overwrite confirmation bootbox.confirm({ message: "<h3>Please Confirm...</h3><br> <p>Are you sure you want to overwrite <b>" + FName + " </b> ?</p>", buttons: { cancel: {label: 'No', className: 'btnBlack' }, confirm: {label: 'Yes', className: 'btnBlack'} }, callback: function (result) { if (result) { //If user allow to overwrite then upload the file to Database ajax_file_upload(files_obj[i]) } } }); }else{ //If not duplicate then upload the file to Database ajax_file_upload(files_obj[i]) } } //Once all the files are uploaded reload the locations location.reload(); } } </script>