The 'err' you get back from a filesystem error is already an Error object, and will need to be handled by your server in some way. Lets say, I know the url of the ...
Please check the below link for step by step tutorial https://www.cluemediator.com/ajax-post-request-with-jquery-and-php ...
Google now renders and indexes client-side AJAX-style JavaScript POST requests. This is good news for those who use modern JavaScript to query online resource APIs and produce dynamic content in pages ...