So I have some form processing code which processes the standard text inputs and also uploaded files (through the $_FILES array)
I want to have the submission done throu
Ajax (as defined, using JavaScript) cannot perform file uploads, as JavaScript cannot access the local filesystem. There are workarounds that seem to use Ajax, such as an iframe or using Flash.
Hunt around Google, you'll find something. There are more libraries (YUI for example) that are putting this together.