When handling ajax requests on the server, think of the ajax as nothing more than a form submit. You handle it exactly the same way as if it were a form. For a POST request, the parameters will be available in $_POST
, $_GET
for get requests, and files will be under $_FILES
. there are exceptions though depending on how exactly the ajax request was formed/sent, because it is possible to post data in the request body rather than as parameters, however that doesn't really apply to your case.
TL;DR:
use $_POST["Path"]
and $_FILES["File"]