diff --git a/static/js/upload.js b/static/js/upload.js index 80c57bc..44afffc 100644 --- a/static/js/upload.js +++ b/static/js/upload.js @@ -48,7 +48,7 @@ Dropzone.options.dropzone = { xhr.open("DELETE", resp.url, true); xhr.setRequestHeader("X-Delete-Key", resp.delete_key); xhr.onreadystatechange = function(file) { - if (xhr.status === 404) { + if (xhr.status === 200) { file.leftElement.innerHTML = 'Deleted ' + resp.url + ''; file.leftElement.className = "deleted"; file.rightRightElement.onclick = null;