Property MaxFileSizeInBytes
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MaxFileSizeInBytes
Gets or sets the maximum allowed file size.
public long MaxFileSizeInBytes { get; set; }
Property Value
- long
The maximum allowed file size.
Examples
UIBlockDefinition uibDef = new UIBlockDefinition();
uibDef.Type = UIBlockType.FileSelector;
uibDef.MaxFileSizeInBytes = 100000;
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.