1👍
✅
Uploading images using AJAX is not as straight forward as a normal upload.
See this question: How to send FormData objects with Ajax-requests in jQuery?
And then there’s a plug-in for jQuery called jQuery Form Plugin. It takes care of all the dirty work for you so you don’t have to worry about binding files to the form, etc etc. Here it is: http://malsup.com/jquery/form/
Source:stackexchange.com