Updated uploadController.js

This commit is contained in:
Bobby Wibowo 2018-07-12 13:38:43 +07:00
parent 730836ccaa
commit b2d9efa744
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -212,7 +212,7 @@ uploadsController.actuallyUploadByUrl = async (req, res, user, albumid) => {
const original = path.basename(url).split(/[?#]/)[0]
const extension = path.extname(original)
if (uploadsController.isExtensionFiltered(extension)) {
return erred(`${extension.substr(1).toUpperCase()} files are not permitted for security reasons.`)
return erred(`${extension.substr(1).toUpperCase()} files are not permitted due to security reasons.`)
}
const head = await snekfetch.head(url)