[DevExpress Support Team: CLONED FROM T302865: ASPxHtmlEditor - An image path is constructed incorrectly when the UploadImageFolder property refers to another server path]
In trying to set to UploadImageFolder setting on the ASPxHTMLEditor it will not accept a UNC path. it instead appends the entered path onto the web root path which results in an invalid path and a "path not found error"
.aspx code below (obviously [servername] is replaced with actual server name in my code)
<dx:ASPxHtmlEditor Enabled="true" ID="htmlHeader" Theme="SoftOrange" Width="100%" Height="240px" runat="server" EnableTheming="true">
<SettingsImageSelector EditingSettings-TemporaryFolder="\[servername]\IISNewsImagesDev\Temp" CommonSettings-UseAppRelativePath="false" CommonSettings-RootFolder="\[servername]\IISNewsImagesDev" CommonSettings-ThumbnailFolder="\[servername]\IISNewsImagesDev" CommonSettings-InitialFolder="HeaderImages" />
<SettingsImageUpload UploadImageFolder="\[servername]\IISNewsImagesDev" />
</dx:ASPxHtmlEditor>
When I go to upload an image this is the error I get…
Could not find a part of the path 'C:\Workspaces\CMS-IISNews\CMS-News\Dev\CMS_IISNews\CMS_IISNews\[servername]\IISNewsImagesDev\wwa5kpwh.jpg'.
Looking forward to reply.
Chris Wollesen
Hi Chris,
I've reproduced this issue and forwarded it to our developers for further investigation. We will update this report once any news regarding this subject is available.
For now, it is possible to either use a virtual folder as described in ASPxHtmlEditor - An image path is constructed incorrectly when the UploadImageFolder property refers to another server path or save an image manually using the ImageFileSaving event.