ajax posts

jQuery AJAX and multipart form handling

I recently had need to submit a web form with file fields via AJAX. The application uses jQuery and was already submitting forms just fine without file fields using the .serialize() method to pass data to a jQuery.ajax() call. That didn’t seem to handle the file fields, though. Searching the internet, I found a solution using the browser built in FormData object.

Continue reading post "jQuery AJAX and multipart form handling"