Downloads a File.
|Name||Type||Accepts Output Streams||Description|
|FileID||String||False||The Id of the file to download.|
|FileVersionID||String||False||The Id of the file version to download. If not fed, it will download the latest version.|
|DownloadTo||String||False||Where to download the file.|
|AsUserId||String||False||The Id of the user you want to impersonate. Only works with Admin, Co-Admin and Service Accounts.|
|UseSimpleName||Boolean||False|| Whether to remove special characters from the filename since Windows won't recognize them.
The default value is false.
|Name||String||False||The name used to store the file after the download. If left empty the original file name will be used.|
|FileStream||String||True||An instance of an output stream where file data is written to. Only used if DownloadTo is not set.|
Result Set Columns
|Success||String||Whether or not the file was successfully downloaded.|
|FileData||String||File data that will be outputted encoded in Base64 if the DownloadTo and FileStream inputs are empty.|