ASPxHtmlEditorUploadSettingsBase.UploadFolderUrlPath Property
Specifies the relative URL path to an upload folder whose physical path is defined using the UploadFolder property.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that defines the relative URL path to the specified upload folder. |
Remarks
Use the UploadFolderUrlPath property when the UploadFolder property of an editor media dialog points to a virtual directory located outside of your web project. When a link to an image or document is inserted into the ASPxHtmlEditor, the editor substitutes the physical path to the resource with a correct site-relative or host-relative path using the UploadFolderUrlPath property setting.
Note
Non-local web pages cannot access local files (specified like file://) in any modern web browser. To make a file available from the web, implement your own handler that returns the requested file. Then, you can set the UploadFolderUrlPath property in the following manner.
UploadFolderUrlPath = "http://yourserver/yourapp/yourhandler.ashx?="
In this case, the file will be resolved as
"http://yourserver/yourapp/yourhandler.ashx?=recentlyUploadedImage.jpg"