Property AllowedFileNameExtensions
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
AllowedFileNameExtensions
Gets or sets the allowed file name extensions.
public List<string> AllowedFileNameExtensions { get; set; }
Property Value
Examples
UIBlockDefinition uibDef = new UIBlockDefinition();
uibDef.Type = UIBlockType.FileSelector;
uibDef.AllowedFileNameExtensions = new List<string>() { ".txt", ".csv" };
Remarks
- In Automation scripts launched from web apps, the MaxFileSizeInBytes and AllowedFileNameExtensions properties of UIBlockDefinitions of type FileSelector are taken into account from DataMiner 10.1.12 onwards.
An error will be thrown when you try to add a file that is larger than the allowed file size or that does not have an allowed file name extension. Also, the “Choose file” pop-up window will only list files with an allowed extension and dragging an item other than a file or a folder onto the script’s drop zone will no longer be possible.
- Available from DataMiner 10.1.12 (RN 31212) onwards.