DownloadFiles

EventNames:

  • DownloadFiles_Restrictions

  • DownloadFiles_Pre

  • DownloadFiles_Post

Parameters

Type

Name

Description

File[]

files

The files which should get / are downloaded.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Examples:
DownloadFiles_Restrictions:

Register-VaultEvent -EventName DownloadFiles_Restrictions -Action 'RestrictDownloadFiles'

function RestrictDownloadFiles($files) {
	#Write event code here
}

DownloadFiles_Pre:

Register-VaultEvent -EventName DownloadFiles_Pre -Action 'PreDownloadFiles'

function PreDownloadFiles($files) {
	#Write event code here
}

DownloadFiles_Post:

Register-VaultEvent -EventName DownloadFiles_Post -Action 'PostDownloadFiles'

function PostDownloadFiles($files, $successful) {
	#Write event code here
}