Fixed xhr upload listener