URL Rewriting in web.config file is effecting the radasync file upload

Thread is closed for posting
2 posts, 1 answers
  1. Phaneendra
    Phaneendra avatar
    27 posts
    Member since:
    Jul 2011

    Posted 18 Dec 2014 Link to this post

    Hi Guys,

    I have an issue with Rad Async Upload,
    When URL rewriting rule specified in web.config file below is my rewriting rule
    2.           <rules>
    3.               <rule name="Convert to lower case" stopProcessing="true">
    4.                   <match url="[A-Z]" ignoreCase="false" />
    5.                   <action type="Redirect" url="{ToLower:{URL}}" />
    6.               </rule>
    7.           </rules>
    8.       </rewrite>

    RadAsync upload file is blinking yellow., 
    When I remove the rewriting URL, its working.

    Could any one help me out so that, keeping the rewriting URL rad async upload file should work.

  2. Answer
    Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 22 Dec 2014 Link to this post


    POST requests (such as file upload) should not be redirected because by default IIS will change the HTTP verb from POST to GET. It is best to explicitly exclude the Telerik.Web.UI.WebResource.axd handler from rewriting:

            <rule name="Process upload" patternSyntax="Wildcard" stopProcessing="true">
              <match url="Telerik.Web.UI.WebResource.axd" ignoreCase="true"  />
              <action type="None" />
            <rule name="Convert to lower case">
              <match url="[A-Z]" ignoreCase="false"/>
              <action type="Redirect" url="{ToLower:{URL}}"/>

    Genady Sergeev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top