When I change url_post from "mysite.com/post.php" to "index.htm" (or any other redirect link), I keep getting "HTTP 405 - Resource not allowed "error.
It appears that a redirect can only be another php file?  Or am I doing something wrong!
I am using Pro 2.3 - version 2.2 worked fine redirecting to another page after uploading!
Any help greatly appreciated.!
			
									
									
						XUpload - Error 405 when trying to use redirect
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Sorry for this bug. It looks that IIS do not allow POSTing to .html files
Here goes the quick fix that will appear in next version:
in upload.cgi add this above "if($ENV{QUERY_STRING}!~/js_on=1/)"
this will redirect to URL if it's .htm(l), other case POST
			
									
									
						Here goes the quick fix that will appear in next version:
in upload.cgi add this above "if($ENV{QUERY_STRING}!~/js_on=1/)"
Code: Select all
if($url_post=~/\.htm(l|)$/i)
{
      print"Content-type: text/html\n\n";
      print"<HTML><HEAD><Script>parent.document.location='$url_post'</Script></HEAD></HTML>";
      exit;
}


 Facebook
 Facebook Twitter
 Twitter