Upload an photo using $.ajax
Hi,
I have a registration form in which I would like the user to have a preview of the photo he selected to upload.
I know that I have to upload the photo to the server in order to display it to the user (security reasons - can't access the full photo path from JS).
I would like to upload the photo to the server using the $.ajax method without any plugins involved - is it possible? If it's possible, please supply a link :)
I searched on google and couldn't find any code examples...
Thanks in advance