Question: how to use ajax file upload?
Answer: Create an HTML form. ... 
index.html. ... 
Add the Cloudinary JavaScript library. ... 
HTML form In your root directory, build an HTML form (an index.html file) with the following code, which contains the fields for file uploads:
Note the following: ... 
AJAX-enabled script in JavaScript. ... 
PHP script.