Commit 6fcabdf1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

check for too big overlay is done on the client side

parent 238d9c7b
......@@ -450,6 +450,8 @@ OverlayPanel.prototype.openAddOverlayDialog = function () {
}
if (fileContent === null) {
GuiConnector.alert("Neither file was selected nor data was entered");
} else if (fileContent.length > 1024 * 256) {
GuiConnector.alert("File to big.<br>Please reduce file size or contact administrators.");
} else {
var data = {
name: nameInput.value,
......
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