fix uploading images to the whiteboard

This commit is contained in:
raphael 2020-05-22 14:43:10 +02:00
parent 76057fad77
commit 22126840e9

View File

@ -26,7 +26,6 @@ function startBackendServer(port) {
console.log("Webserver & socketserver running on port:" + port);
const { accessToken, enableWebdav } = config.backend;
const { imageDownloadFormat } = config.frontend;
app.get("/api/loadwhiteboard", function (req, res) {
var wid = req["query"]["wid"];
@ -92,7 +91,7 @@ function startBackendServer(port) {
var name = fields["name"] || "";
var date = fields["date"] || +new Date();
var filename = whiteboardId + "_" + date + "." + imageDownloadFormat;
var filename = whiteboardId + "_" + date + ".png";
var webdavaccess = fields["webdavaccess"] || false;
try {
webdavaccess = JSON.parse(webdavaccess);