diff --git a/apps/meteor/app/importer/server/methods/downloadPublicImportFile.js b/apps/meteor/app/importer/server/methods/downloadPublicImportFile.js index 6424c633bdbe..6facd718f0e4 100644 --- a/apps/meteor/app/importer/server/methods/downloadPublicImportFile.js +++ b/apps/meteor/app/importer/server/methods/downloadPublicImportFile.js @@ -57,7 +57,7 @@ Meteor.methods({ importer.instance = new importer.importer(importer); // eslint-disable-line new-cap - const oldFileName = fileUrl.substring(fileUrl.lastIndexOf('/') + 1); + const oldFileName = fileUrl.substring(fileUrl.lastIndexOf('/') + 1).split('?')[0]; const date = new Date(); const dateStr = `${date.getUTCFullYear()}${date.getUTCMonth()}${date.getUTCDate()}${date.getUTCHours()}${date.getUTCMinutes()}${date.getUTCSeconds()}`; const newFileName = `${dateStr}_${userId}_${oldFileName}`;