		fileReader.onload = function (evt) {
			length += evt.target.result.length;
			if (length > fieldInfo['maximumlength']) {
				return aDeferred.reject(app.vtranslate('JS_MAXIMUM_TEXT_SIZE_IN_BYTES') + ' ' + fieldInfo['maximumlength']);
			}
			AppConnector.request({
				module: app.getModuleName(),
				action: 'Fields',
				mode: 'validateFile',
				fieldName: fieldInfo['name'],
				base64: evt.target.result
			})
				.done((data) => {
					if (data.result.validate) {
						aDeferred.resolve(evt.target.result);
					} else {
						aDeferred.reject(data.result.validateError);
					}
				})
				.fail(function () {
					aDeferred.reject();
				});
		};
		fileReader.readAsDataURL(file);
		return aDeferred.promise();
	}
The software allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment.