I've a form that insert some values using AJAX, and now I want to add also an image, but I can't get the image simply using the superglobal $_FILE['file_name'] in the PHP code, cause the comunication with PHP is under AJAX. So I'm wondering if I could load the file from the PHP using the file's path, infact I could simply pass it throught the JS/AJAX.
Or it's a method that permit me to take the whole file binary code from the JS/AJAX, then pass it to the PHP and finallu put it in a BLOB of the SQL db?
Ps.: obviously I must use the ajax