Hello Dojo,
For the FileSelector class, is it possible to specify the extensions that the script is expecting to receive? For example, only allow .xlsx or .xls files opposed to "All Files" as shown below:
If that's not possible, is the recommendation then to validate the extension by using the UploadedFilePaths property?
Thank you!
Hi Sebastian, this is possible using the AllowedFileNameExtensions property since DataMiner version 10.1.12, see https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.UIBlockDefinition.AllowedFileNameExtensions.html.
Unfortunately it seems that this is not supported yet by the interactive framework. Feel free to open a pull request to add support for it in the following file: https://github.com/SkylineCommunications/Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit/blob/7.0.X/InteractiveAutomationToolkit/Components/FileSelector.cs.