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);
|
console.log("Webserver & socketserver running on port:" + port);
|
||||||
|
|
||||||
const { accessToken, enableWebdav } = config.backend;
|
const { accessToken, enableWebdav } = config.backend;
|
||||||
const { imageDownloadFormat } = config.frontend;
|
|
||||||
|
|
||||||
app.get("/api/loadwhiteboard", function (req, res) {
|
app.get("/api/loadwhiteboard", function (req, res) {
|
||||||
var wid = req["query"]["wid"];
|
var wid = req["query"]["wid"];
|
||||||
@ -92,7 +91,7 @@ function startBackendServer(port) {
|
|||||||
|
|
||||||
var name = fields["name"] || "";
|
var name = fields["name"] || "";
|
||||||
var date = fields["date"] || +new Date();
|
var date = fields["date"] || +new Date();
|
||||||
var filename = whiteboardId + "_" + date + "." + imageDownloadFormat;
|
var filename = whiteboardId + "_" + date + ".png";
|
||||||
var webdavaccess = fields["webdavaccess"] || false;
|
var webdavaccess = fields["webdavaccess"] || false;
|
||||||
try {
|
try {
|
||||||
webdavaccess = JSON.parse(webdavaccess);
|
webdavaccess = JSON.parse(webdavaccess);
|
||||||
|
Loading…
Reference in New Issue
Block a user