Upload file using ajax.