diff --git a/src/app/services/files.js b/src/app/services/files.js index 79b72f52..16851a80 100644 --- a/src/app/services/files.js +++ b/src/app/services/files.js @@ -265,7 +265,7 @@ module.exports = (Model, App) => { } const plainName = file.plainName ?? file.plain_name ?? App.services.Crypt.decryptName(file.name, file.folder_id); - const destinationName = App.services.Crypt.encryptName(originalName, destination); + const destinationName = App.services.Crypt.encryptName(plainName, destination); const exists = await Model.file.findOne({ where: {