I am building web app with Flask and Pyinstaller to build a single executable and i have the following problem:
var http = new XMLHttpRequest();
http.open('HEAD', "/static/" + name_file_rc + ".avi", false);
http.send();
if (http.status === 200){
allow_download = true;
$('#remove_download').show();
$('#download').show();
$('#frame_record,#second,#size_file,#title_size_file,#title_second').show();
Flag_stop_record_by_err = false;
clearInterval(allow_download_inter);
clearTimeout(timeout_download);
}
else{
allow_download = false;
// console.log("Load file fail");
}