Bug Report T337286
Visible to All Users

ASPxHtmlEditor - ImageSelector Gallery does not resolve the url path from the upload folder

created 9 years ago

In my XaF solution I made a custom Editor based on the ASPxHtmlPropertyEditor.

The SettingsDialogs.InsertImageDialog.SettingsImageUpload.UploadFolder = "~/Images"

When uploading an images, the images is placed in the correct folder (i.e. Images) and is displayed correctly in the editor.

However when inserting the same image from the Gallery the uploadfolder is ignored in the url, resulting in a broken image link.

The resulting HTML in the editor is:

<p>Uploaded image: <img alt="" src="http://localhost:52673/Images/close.png"></p>
<p>Inserted image from Gallery: <img alt="" src="http://localhost:52673/close.png"><br></p>

See a sample project with this issue in the attachment.

Any ideas how to solve this?

Comments (2)
DevExpress Support Team 9 years ago

    Hello,

    I have researched your project and found that this behavior is not correct. I have passed this issue to our developers, so they will research it and find the cause of the problem.
    As a workaround, I suggest you set the FileManagerSettings.RootFolder property, and the image link will not be broken.

    J J
    Joël van der Meer 9 years ago

      Hi Staton, Thanks for your answer. I had to search to find the Rootfolder but eventually I found it  and
      editor.SettingsDialogs.InsertImageDialog.SettingsImageSelector.CommonSettings.RootFolder = "~/Images";
      works as a workaround.

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.