fix uploading images to the whiteboard
This commit is contained in:
parent
76057fad77
commit
22126840e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user