|
|
Rank: Member
Groups: Registered
Joined: 7/25/2009 Posts: 13 Location: Ohio, USA
|
Hello, I have a site in ASP.NET MVC and have been using the SlickUpload successfully for a little while.
I recently implemented a 301 redirect using IIS' URL Rewrite module. As soon as I did this, the SlickUpload component stopped working when I uploaded any files. When I clicked "upload" it just sat at 0% and eventually timed out.
Should this work in my environment? Is there any additional configuration changes I need to make to support this?
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
Here are some questions to help track down the issue:
- Are you redirecting the SlickUpload handler (SlickUpload.axd), or just some of your application pages?
- You're using IIS7 integrated mode with this url rewrite module: http://www.iis.net/download/urlrewrite, correct?
|
|
|
Rank: Member
Groups: Registered
Joined: 7/25/2009 Posts: 13 Location: Ohio, USA
|
Are you redirecting the SlickUpload handler (SlickUpload.axd), or just some of your application pages?
I am not sure. If I add a URL Rewrite rule for "Canonical domain name" it breaks the upload. I am trying to optimize for SEO by making sure that I have a permanent redirect. The idea is to change any urls that do not have a www to instead have a www.
You're using IIS7 integrated mode with this url rewrite module: http://www.iis.net/download/urlrewrite, correct?
Yes, It is using integrated mode and the specified url rewrite module.
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
We've done some testing and SlickUpload works with the IIS UrlRewrite module as long as you don't redirect SlickUpload's handler (SlickUpload.axd). Redirecting the handler cause the upload to fail because HTTP POST's can't be redirected -- SlickUpload attempts a form post to do the upload, and instead of the post going through it receives a redirect.
Based on this, it sounds as if your redirect rules are catching SlickUpload's handler. Try adding an exclusion to the rule, something like:
<add input="{REQUEST_URI}" pattern="SlickUpload.axd" negate="true" />
|
|
|
Rank: Member
Groups: Registered
Joined: 7/25/2009 Posts: 13 Location: Ohio, USA
|
As usual, thank you for the excellent support!
After your suggestion I tried a canonical domain name rule and realized that that wasn't the problem initially. Initially, the issue stemmed from a Lower Case rule. That makes sense, because it would be attempting to process the SlickUpload.axd file and make it slickupload.axd. After putting in the exclusion you mention, both rules worked.
Thanks again!
|
|
|
|
Guest |