diff --git a/controllers/uploadController.js b/controllers/uploadController.js index a6dca59..a51a8dc 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -1103,7 +1103,7 @@ self.sendUploadResponse = async (req, res, result) => { // If uploaded by user, add delete URL (intended for ShareX and its derivatives) // Homepage uploader will not use this (use dashboard instead) if (req.locals.user) { - map.deleteUrl = `${utils.conf.homeDomain}/file/${file.name}?delete` + map.deleteUrl = `${utils.conf.homeDomain || ''}/file/${file.name}?delete` } return map