The site folder where the Image Browser ImageUpload.aspx file is located.
| C# |
public string AspxDirectory { get; set; }
The Image Browser upload functionality requires
the ImageUpload.aspx file on the site. This property tells the
Image Browser where that file is located.
If CanUpload is true this property must be set.
Note: To prevent files that are larger than acceptable from being uploaded, a separate Web.config file should also be located in this folder. That configuration file should set the maxRequestLength to an appropriate amount, generally slightly larger that the MaxUploadFileSizeInKB setting.
Set the property declaratively in the HtmlEditor tag:
CopyC#
Set the maxRequestLength in the related Web.config:
CopyC#
AspxDirectory = "~/ImageBrowser/Aspx"<?xml version="1.0"?> <configuration> <system.web> <httpRuntime maxRequestLength="260"/> </system.web> </configuration>