malsup/form — Issue #155: "data" option gets ignored when submitted as "multipart/form-data"
Author: vicrry
Created: 2011-12-01 12:32:27+00:00
State: open

As long as the form is natively submitted in an iFrame, the data I specified in ajaxSetup gets ignored.

```javascript
$.ajaxSetup({
data: { /* something */ }
});
```

This also fails.

```javascript
$.ajaxSubmit({
data: $.ajaxSetup().data
});
```

I guess a workaround should be hidden fields being automatically added during `beforeSerialize` event, and then remove them on `success`.

Please let me know if this is a good approach, I'd love to fork and give a patch over this issue. =)