I am currently creating a form that involves a file uploader. Currently my form is fine just using multipart and post but later on in future iterations it will be necessary for the form to be posted with ajax in order to edit the image before submitting the form.
I have seen a lot of things about multiple files like jquery-file-upload and swf and php with uploadify and a whole host of non IE 7+ solutions. However those are not going to work for this specific project and I am really just looking for the bare bones nothing fancy to have to deal with just sends the image data to an endpoint.
What is the best way to do this in a way that can support all browsers.
=====EDIT=====
I havent tested this completely yet but this solution seems good to me https://github.com/francois2metz/html5-formdata