Let’s assume that you have a webform and you would like to submit it with AJAX. jQuery makes this easy so there’s no problem – you can use jQuery serialize to encode the form data, and all is well. But then you want to include a file input field with the form submission and your remote AJAX handler doesn’t receive it at all. Well, serialize() says that it doesn’t serialize form data so now what? T
![Submit file input via AJAX with jQuery the easy way – Planetjon](https://cdn-ak-scissors.b.st-hatena.com/image/square/8f281e77902e6fe5696e4c4eb9b489a68ebcef1f/height=288;version=1;width=512/https%3A%2F%2Fplanetjon.ca%2Fwp-content%2Fuploads%2F2014%2F01%2Faustin-distel-VvAcrVa56fc-unsplash-scaled.jpg)