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 271 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Phaneendra
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
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 22 Dec 2014, 04:17 PM
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.

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