switched to using fileAjax instead of regular $.ajax (for ajax file uploads)