Commit 38f586ea authored by Aral Balkan's avatar Aral Balkan
Browse files

Added debugging code for handling 413s more gracefully.

parent ec7c01d0
......@@ -236,7 +236,7 @@ uploadItButton.addEventListener('click', function(evt) {
var uploadProgress = $('#upload-progress');
uploadProgress.value = percentage;
console.log('Upload progress: ' + percentage);
// console.log('Upload progress: ' + percentage);
}
});
......@@ -246,6 +246,8 @@ uploadItButton.addEventListener('click', function(evt) {
// Even if the server hasn't responded that it finished.
console.log('Request has successfully completed.');
console.log(e);
// Return the video preview control to its original state.
video.src = '';
videoPreview.setAttribute('data-disabled', true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment