Link Vault for Craft CMS - Download Model

LinkVault_DownloadModel

Properties

elementId

The ID of the custom related element that was set using the elementId parameter in the downloadURL variable.

relatedElement

The custom related element with the ID that matches the value of the elementId property.

assetId

The ID of the related asset if an instance of an AssetFileModel was supplied to the downloadURL variable.

asset

The related AssetFileModel with the ID that matches the value of the assetId property.

userId

The ID of the user that downloaded the file.

user

The related UserModel with the ID that matches the value of the userId property.

s3Bucket

The name of the S3 Bucket where the file is stored (S3 sourced assets only).

dirName

The folder where the file is stored. This is either a server path or a folder path in an S3 bucket.

fileName

The full name of the file downloaded. This is the name of the file as it appears in the file system.

downloadAs

The filename that was used when the file was downloaded. 

isUrl

This property determines whether or not a URL was used for the downloadURL variable.

remoteIP

The IP address of the user that downloaded the file.