here is my code for uploading some images on server
everything works except success
– reloading the page after uploading is finished
I tried with another params – for example 20000 – without success
please help
inpfi.on('change', function(){
var flist = inpfi[0].files;
var fd = new FormData();
for(let i = 0; i < flist.length; i++){fd.append('flist[]', flist[i]);}
$.ajax({
url: 'a_slike_up.php',
type: 'post',
data: fd,
dataType: 'json',
contentType: false,
processData: false,
success: function(){setInterval('location.reload()', 7000);}
})
});