Merge pull request #2730 from mvanhelmont/U4-7463

Media library thumbnail does not reload if a new image with the same name is uploaded
This commit is contained in:
Sebastiaan Janssen
2018-07-25 13:14:42 +02:00
committed by GitHub

View File

@@ -73,7 +73,7 @@ function fileUploadController($scope, $element, $compile, imageHelper, fileManag
var extension = file.file.substring(file.file.lastIndexOf(".") + 1, file.file.length);
file.thumbnail = thumbnailUrl;
file.thumbnail = thumbnailUrl + '&rnd=' + Math.random();
file.extension = extension.toLowerCase();
});