before ajax file upload