Merge pull request #2083 from Eyescream/#U4-5139

U4-5139 Error uploading a file when filename contains comma
This commit is contained in:
Sebastiaan Janssen
2018-09-27 11:17:27 +02:00
committed by GitHub

View File

@@ -118,7 +118,7 @@ function fileUploadController($scope, $element, $compile, imageHelper, fileManag
for (var i = 0; i < args.files.length; i++) {
//save the file object to the scope's files collection
$scope.files.push({ alias: $scope.model.alias, file: args.files[i] });
newVal += args.files[i].name + ",";
newVal += args.files[i].name.replace(',','-') + ",";
}
//this is required to re-validate