mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
Updated uploadController.js
This commit is contained in:
parent
2fab5becb0
commit
d1a3935edb
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user