<?php $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }) $.ajax({ url: $(this).attr('action'), dataType: 'text', cache: false, contentType: false, processData: false, data: form_data, type: 'post', success : function(fssp){ console.log(fssp); $(".none_img").append('<img src="'+fssp+'">'); const file = '.'+fssp+''; const lang = 'rus'; Tesseract.recognize(file, lang) .then(({ data: {text }}) => { console.log(text); $(".none_img").append('<p>"'+text+'"</p>'); }) }, ?>
You have javascript disabled. You will not be able to edit any code.