if (application.configuration.DamConfigurations.uploadMethod == enums.UploadMethod.PinAnCloud) { imageData.fileName=RIS.newGuid(); } else if (application.configuration.DamConfigurations.uploadMethod == enums.UploadMethod.FTP || application.configuration.DamConfigurations.uploadMethod == enums.UploadMethod.SFTP) { var fileType = '.jpg', newFileName, firstIndex = '001'; var files = []; angular.forEach($scope.fileList, function (item) { if (item.fileName.length < 32) { files.push({fileName : item.fileName}); } }); // ERNO+'00N' Format if (files.length === 0) {