Also prepare drag-and-drop uploading for conflict detection.
This commit is contained in:
@@ -261,7 +261,11 @@
|
|||||||
window.ace_editor.insert(text);
|
window.ace_editor.insert(text);
|
||||||
},
|
},
|
||||||
error: function(r, textStatus, errorThrown) {
|
error: function(r, textStatus, errorThrown) {
|
||||||
|
if (data.status == 409) {
|
||||||
|
alert('This file already exists.');
|
||||||
|
} else {
|
||||||
alert('Error uploading file: ' + textStatus + ' ' + errorThrown);
|
alert('Error uploading file: ' + textStatus + ' ' + errorThrown);
|
||||||
|
}
|
||||||
$editorBody.removeClass('uploading');
|
$editorBody.removeClass('uploading');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user