diff --git a/models/attachments.js b/models/attachments.js index aaa4f370e..bbbf8e596 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -24,7 +24,7 @@ Attachments = new FilesCollection({ allowClientCode: true, namingFunction(opts) { const filenameWithoutExtension = opts.name.replace(/(.+)\..+/, "$1"); - const ret = opts.meta.fileId + "-" + filenameWithoutExtension; + const ret = opts.meta.fileId + "-original-" + filenameWithoutExtension; // remove fileId from meta, it was only stored there to have this information here in the namingFunction function delete opts.meta.fileId; return ret;