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
XUpload - chnaging url_post to a redirect htm page
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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/)":
Here goes quick fix: in upload.cgi insert above line "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;
}