SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Error 405 when trying to use redirect

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
thumperuk



Joined: 20 Nov 2006
Posts: 4

PostPosted: Nov 26, 2006 3:51 pm    Post subject: Error 405 when trying to use redirect Reply with quote

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.!
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Nov 27, 2006 7:48 am    Post subject: Reply with quote

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/)"
Code:

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;
}


this will redirect to URL if it's .htm(l), other case POST
Back to top
View user's profile Send private message Visit poster's website AIM Address
thumperuk



Joined: 20 Nov 2006
Posts: 4

PostPosted: Nov 30, 2006 2:47 pm    Post subject: Thanks Reply with quote

Many thanks - works perfectly now!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group