Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!110uploading of big data overlay gives proper error message
...@@ -450,6 +450,8 @@ OverlayPanel.prototype.openAddOverlayDialog = function () { ...@@ -450,6 +450,8 @@ OverlayPanel.prototype.openAddOverlayDialog = function () {
} }
if (fileContent === null) { if (fileContent === null) {
GuiConnector.alert("Neither file was selected nor data was entered"); 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 { } else {
var data = { var data = {
name: nameInput.value, name: nameInput.value,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment