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
chnaging url_post to a redirect htm page

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



Joined: 05 Dec 2006
Posts: 8

PostPosted: Dec 15, 2006 12:18 pm    Post subject: chnaging url_post to a redirect htm page Reply with quote

Hi

Read another post on this forum that said I could chnage the url_post parm in xuploadconfig.pm to a web page rather than the post-cgi. Just wanted to direct it to a thank you page basically.

If you just change it to

url_post => 'http://www.tshirt-mad.co.uk/thanks.htm',

you get a 405 error saying you can't use a post method to open the web page.

Any ideas if I need to change anything in the CGIs to get this to work, or is there a better way of re-directing back to a web page once the upload is finished.

Thanks

Mick
Back to top
View user's profile Send private message
PilgrimX182



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

PostPosted: Dec 15, 2006 12:46 pm    Post subject: Reply with quote

Yes. This error was born in Pro 2.3 version after config simplification and already solved, won't be in 2.4 version.

Here goes quick fix: in upload.cgi insert above line "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;
   }
Back to top
View user's profile Send private message Visit poster's website AIM Address
packerm



Joined: 05 Dec 2006
Posts: 8

PostPosted: Dec 15, 2006 1:37 pm    Post subject: Reply with quote

Thanks, works a treat.
Back to top
View user's profile Send private message
vnairp11



Joined: 07 Jan 2007
Posts: 10

PostPosted: Jan 08, 2007 4:35 pm    Post subject: Reply with quote

i put in the code where do you put the url to redirect? is it the url post in form html?
Back to top
View user's profile Send private message Visit poster's website
vnairp11



Joined: 07 Jan 2007
Posts: 10

PostPosted: Jan 08, 2007 4:52 pm    Post subject: Reply with quote

Nm fixed this issue thanks.
Back to top
View user's profile Send private message Visit poster's website
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