Also prepare drag-and-drop uploading for conflict detection.

This commit is contained in:
Bart Kamphorst
2019-08-27 13:19:19 +02:00
parent e1aa4c02a0
commit 7f07f652d4
@@ -261,7 +261,11 @@
window.ace_editor.insert(text);
},
error: function(r, textStatus, errorThrown) {
alert('Error uploading file: ' + textStatus + ' ' + errorThrown);
if (data.status == 409) {
alert('This file already exists.');
} else {
alert('Error uploading file: ' + textStatus + ' ' + errorThrown);
}
$editorBody.removeClass('uploading');
}
});