Skip to content
Snippets Groups Projects
Commit b52ca411 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Added maxUploadFilesize config to configuration controller.

parent 6e73487d
No related merge requests found
......@@ -96,6 +96,9 @@ public class ConfigurationController extends AbstractController {
@Value("${question.answer-option-limit:8}")
private String answerOptionLimit;
@Value("${upload.filesize_b:}")
private String maxUploadFilesize;
@Value("${question.parse-answer-option-formatting:false}")
private String parseAnswerOptionFormatting;
......@@ -158,6 +161,9 @@ public class ConfigurationController extends AbstractController {
if (!"".equals(demoSessionKey)) {
config.put("demoSessionKey", demoSessionKey);
}
if (!"".equals(maxUploadFilesize)) {
config.put("maxUploadFilesize", maxUploadFilesize);
}
config.put("answerOptionLimit", Integer.valueOf(answerOptionLimit));
config.put("parseAnswerOptionFormatting", Boolean.valueOf(parseAnswerOptionFormatting));
......
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