Updated uploadController.js

This commit is contained in:
Bobby Wibowo 2018-12-08 07:38:42 +07:00
parent 2fab5becb0
commit d1a3935edb
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -127,7 +127,7 @@ uploadsController.getUniqueRandomName = (length, extension, set) => {
// console.log(`Added ${identifier} to identifiers cache`)
return resolve(identifier + extension)
} else {
// Less stricter collision check, as the same identifier
// Less stricter collision check, as in the same identifier
// can be used by multiple different extensions
const name = identifier + extension
fs.access(path.join(uploadsDir, name), error => {