This is a migrated thread and some comments may be shown as answers.

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

1 Answer 277 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Phaneendra asked on 18 Dec 2014, 12:20 PM
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.


1 Answer, 1 is accepted

Sort by
Genady Sergeev
Telerik team
answered on 22 Dec 2014, 04:17 PM

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.

Upload (Obsolete)
Asked by
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question