const request = new XMLHttpRequest();
request.open('put', url, false);
request.upload.addEventListener('load', function(e) {
alert(request.responseText);
}, false);
Why is the responseText property of the XMLHttpRequest object empty? How can data be accessed in xhr.responseText when using xhr.onreadystatechange and the readyState is 4?