I have set up a form that uses the $.ajax function using POST. Part
of my form is an image upload dialog, using the standard file upload
input box. The problem is, the upload is not working, and I think it
has to do with the encoding. When I upload it with ajax, it just
sends through the path to the file on my local computer. But if I use
normal form POST, without ajax, it will send the image contents
through (I can see all the data that was sent, with ajax it is not
there.) So, what I need to know is, for something like this, so I
need to be encoding that somehow?