Use the xhrFields parameters to the ajax method (see jQuery.ajax for reference).
Attach a file by drag & drop or click to upload