mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +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`)
|
// console.log(`Added ${identifier} to identifiers cache`)
|
||||||
return resolve(identifier + extension)
|
return resolve(identifier + extension)
|
||||||
} else {
|
} 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
|
// can be used by multiple different extensions
|
||||||
const name = identifier + extension
|
const name = identifier + extension
|
||||||
fs.access(path.join(uploadsDir, name), error => {
|
fs.access(path.join(uploadsDir, name), error => {
|
||||||
|
Loading…
Reference in New Issue
Block a user