Skip to main content
A newer version of this page is available. .

ASPxHtmlEditorUploadSettingsBase.UploadFolderUrlPath Property

Gets or sets a value that specifies the relative URL path to an upload folder whose physical path is defined using the ASPxHtmlEditorUploadSettingsBase.UploadFolder property.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v19.2.dll

Declaration

[DefaultValue("")]
public string UploadFolderUrlPath { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that defines the relative URL path to the specified upload folder.

Property Paths

You can access this nested property as listed below:

Object Type Path to UploadFolderUrlPath
HtmlEditorInsertAudioDialogSettings
.SettingsAudioUpload.UploadFolderUrlPath
HtmlEditorInsertFlashDialogSettings
.SettingsFlashUpload.UploadFolderUrlPath
HtmlEditorInsertImageDialogSettings
.SettingsImageUpload.UploadFolderUrlPath
HtmlEditorInsertVideoDialogSettings
.SettingsVideoUpload.UploadFolderUrlPath
MVCxHtmlEditorInsertAudioDialogSettings
.SettingsAudioUpload.UploadFolderUrlPath
MVCxHtmlEditorInsertFlashDialogSettings
.SettingsFlashUpload.UploadFolderUrlPath
MVCxHtmlEditorInsertImageDialogSettings
.SettingsImageUpload.UploadFolderUrlPath
MVCxHtmlEditorInsertVideoDialogSettings
.SettingsVideoUpload.UploadFolderUrlPath

Remarks

Use the UploadFolderUrlPath property when the ASPxHtmlEditorUploadSettingsBase.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"
See Also