XUpload - Problem with 2.5

Message
Author
daniel
Posts: 5
Joined: May 24, 2007 2:56 am

Problem with 2.5

#1 Postby daniel » May 27, 2007 1:15 am

XUpload pro has problems with urls not ending with .html or .php, etc.

Using mod_rewrite I tried posting the form from a url like:
www.domain.com/upload/

The result is that the XUpload Pro post_url pulls everything as $_GET's instead of $_POSTs.

I also recall that I couldn't use a url like www.domain.com/uploadsuccess.html as my post_url (even though it was mod_rewrite to a php script).

Just an FYI.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » May 28, 2007 6:05 am

I was trying to smart detect where we need redirect or POST, so redirecting only to .htm and .html, POSTing to other URLs.
If you need to disable redirects at all, you can remove or comment this code from upload.cgi:

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