The mgiEncryptURL Tag

Tag Behavior

Use the mgiEncryptURL tag to encrypt the link to specified files.


Tag Syntax

The mgiEncryptURL tag has one required parameter and two optional parameters. The tag form is:

<mgiEncryptURL url="File Path" expiration="Julian Date" 
mimeType="Mime Type">

Required Parameters:

  • url - The url is the absolute path from the root folder to the file to encrypt (e.g., Root/Folder/File.jpg).

Optional Parameters:

  • expiration - The expiration is the Julian date that you want the encryption link to expire. (see mgiJulianDay) The default expiration is no expiration (i.e., the encrypted link will never expire).
  • mimeType - The mimeType is the MIME type that should be used to send the data in the file (e.g., "image/jpeg"). If no MIME type is selected, an appropriate header will be sent according to the extension of the file.


Example Usage and Output

<mgiEncryptURL url="portrait.jpg"
expiration={mgiJulianDay month="10" day="25" 
year="2000" dateonly="yes"}>

In this example, the link to the file "portrait.jpg" is encrypted and the encrypted link expires on October 25, 2000. Encrypted file links protect your images, downloads, and other files.


Suggested Usage

  • File Downloads
  • Online Image Sales
  • Software Sales


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]