Kentico CMS 6.0 Developer's Guide

GetFile.aspx parameters

GetFile.aspx parameters

Previous topic Next topic Mail us feedback on this topic!  

GetFile.aspx parameters

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The GetFile.aspx script is used in many cases to retrieve an uploaded file from the database. It is called whenever you use /getdoc, /getattachment or a direct URL based on the alias path of a cms.file document.

 

The GetFile.aspx script accepts the following URL parameters:

 

Parameter Name

Description

Sample Value

guid

Attachment GUID value

 

nodeguid

Node GUID value


versionhistoryid

Version history ID of the attachment. It can only be used together with the guid parameter.


width

Resizes the image to a specified width (in pixels).

100

height

Resizes the image to a specified height (in pixels).

400

maxsidesize

Resizes the image to the specified size of the longest side (in pixels).

500

disposition

Indicates the output disposition of the file. You can use either inline (opens the file in the browser window if possible) or attachment disposition (opens the "Save or Open" dialog).

inline

 

or

 

attachment