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
    1.<rewrite>
    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.



    Thanks
    Phaneendra
  2. Answer
    Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 22 Dec 2014 Link to this post

    Hello,

    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:

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



    Regards,
    Genady Sergeev
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top