Skip to content
Snippets Groups Projects
Unverified Commit 88ac9419 authored by Pierre Lehnen's avatar Pierre Lehnen Committed by GitHub
Browse files

[FIX] Importer fails to download files from URLs with query string params (#25934)

parent 31d7635f
No related branches found
No related tags found
No related merge requests found
......@@ -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}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment