From b646a4a82ff3945da837ce57c632709f548ebb7b Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sun, 10 Nov 2019 03:41:54 +0700 Subject: [PATCH] Updated uploadController.js String updates. --- controllers/uploadController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 194e2c9..cded1bf 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -204,7 +204,7 @@ self.upload = async (req, res, next) => { if (temporaryUploads) { age = self.parseUploadAge(req.headers.age) if (!age && !config.uploads.temporaryUploadAges.includes(0)) - return res.json({ success: false, description: 'Permanent uploads are prohibited.' }) + return res.json({ success: false, description: 'Permanent uploads are not permitted.' }) } try { @@ -309,7 +309,7 @@ self.actuallyUploadUrls = async (req, res, user, albumid, age) => { filtered = self.isExtensionFiltered(extname) if (filtered) - throw `${extname ? `${extname.substr(1).toUpperCase()} files` : 'Files with no extension'} are not permitted due to security reasons.` + throw `${extname ? `${extname.substr(1).toUpperCase()} files` : 'Files with no extension'} are not permitted.` if (config.uploads.urlProxy) url = config.uploads.urlProxy @@ -413,12 +413,12 @@ self.actuallyFinishChunks = async (req, res, user) => { file.extname = typeof file.original === 'string' ? utils.extname(file.original) : '' if (self.isExtensionFiltered(file.extname)) - throw `${file.extname ? `${file.extname.substr(1).toUpperCase()} files` : 'Files with no extension'} are not permitted due to security reasons.` + throw `${file.extname ? `${file.extname.substr(1).toUpperCase()} files` : 'Files with no extension'} are not permitted.` if (temporaryUploads) { file.age = self.parseUploadAge(file.age) if (!file.age && !config.uploads.temporaryUploadAges.includes(0)) - throw 'Permanent uploads are prohibited.' + throw 'Permanent uploads are not permitted.' } file.size = chunksData[file.uuid].size