Table of Contents

Method GetUploadedFilePath

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetUploadedFilePath(string)

Retrieves the selected upload file path.

public string GetUploadedFilePath(string key)

Parameters

key string

The key of the file selection UI component to retrieve the selected upload file paht from.

Returns

string

The selected upload file path. If the specified key was not found, null is returned.

Examples

UIBlockDefinition uiBlock = new UIBlockDefinition();
uiBlock.Type = UIBlockType.FileSelector;
uiBlock.DestVar = "varUserUploadedFile";
...
UIResults results = engine.ShowUI(uiBuilder);
string uploadedFilePath = results.GetUploadedFilePath("varUserUploadedFile");

Remarks

When you have selected a file, the actual upload will only start after you click a button to make the script continue (e.g.Close, Next, etc.). Once the upload has started, a Cancel option will appear, allowing you to abort the upload operation.

All files uploaded by users will by default be placed in the C:\Skyline DataMiner\TempDocuments folder, which is automatically cleared at every DataMiner startup.

Feature introduced in DataMiner 10.0.2 (RN 23950).