Fix double-calling in upload JS binding.