beforeSend does not work for files

The request gets messed up before beforeSend can intervene.