jQuery form plugin, ajaxForm() but with conditional fields

jQuery form plugin, ajaxForm() but with conditional fields

jQuery form plugin:

I need to upload a form with ajaxForm() (or so I believe, as fieldSerialize() doesn't seem to serialize file fields properly).

How can I only serialize a subset of the fields in my form using ajaxForm() ? I've tried manipulating the arr or $form parameters in beforeSerialize() or beforeSubmit() but it doesn't do it.

OR how can I use ajaxSubmit() or fieldSerialize() so that it supports file upload files as well. Lets say for EG I want to just exclude fields with the class hiddenField on it.

Thanks!