Image Preview not working

4 posts, 0 answers
  1. Vazqusa
    Vazqusa avatar
    4 posts
    Member since:
    Aug 2013

    Posted 26 Aug 2013 Link to this post

    [RadEditor] [ImageManager]

    Preview is not working when the image Name contains some special characters like "% or $", is there any solution for this or some workaround to fix this ?

    Thanks
  2. Vazqusa
    Vazqusa avatar
    4 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    Any update on this, @telerik team ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vessy
    Admin
    Vessy avatar
    1388 posts

    Posted 29 Aug 2013 Link to this post

    Hello Vazqusa,

    The experienced behavior is not caused by an Editor's (or FileExplorer's) limitation, but indicates that the publishing was cancelled due to the ASP.NET validators detecting a dangerous input in the request path. This information concerns the following characters: <,>,*,%,&,:,\. You could predefine the set of the restricted characters by both setting ValidateRequest="false" to the page, containing the Editor and adding the following property in the <httpRuntime> section of the web.config:

    <system.web>
        <httpRuntime enableVersionHeader="false" maxUrlLength="1200" maxRequestLength="1572864000" executionTimeout="18000"
            relaxedUrlToFileSystemMapping="true"
            requestPathInvalidCharacters="" />
    </system.web>

    More detailed information on the subject could be found here: HttpRuntimeSection.RequestPathInvalidCharacters Property

    There is another set of characters, which are told to be unsaved or/and reserved ones. You can find detailed information about them here and here.

    There is also a third set of characters, which are restricted by the operating system itself - http://screencast.com/t/AxABxovEk7

    In short, event if you configure your application to skip the path validation, there will remain symbols, which could not be used as a path to a file. I hope the following video will shed some light on the subject: video.

    You can also look at the following KB article, if you decide to restrict the using of such characters at all: How to notify the user that an image with invalid file name is being uploaded.

    Additionally, please note, that our support system assigns a response time for all questions, depending on the client's license. You can find detailed information regarding the different support plans and how to activate them here: Support Plans

    Regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Vazqusa
    Vazqusa avatar
    4 posts
    Member since:
    Aug 2013

    Posted 29 Aug 2013 Link to this post

    thanks, had already implemented the same, but thank any way.
Back to Top