XUpload - XUpload Pro with another form

Posts: 8
Joined: Sep 13, 2007 6:32 pm

XUpload Pro with another form

#1 Postby Thomas » Sep 13, 2007 6:35 pm


XFileUpload Pro seems to be installed and working correctly, so i can select and upload multiple files using the circle process bar.

What i want to happen is for the upload to occur, and the when completed submit a form on the existing page. Right now the upload finishes and clears the existing window and dumps out the results.

I'd like to suppress the results to an iframe, and keep it hidden, and then submit the form that's on the existing page if the upload has succeeded.

Any suggestions on where to look in xFile upload?


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

#2 Postby PilgrimX182 » Sep 14, 2007 7:43 am

If you don't need POST redirect you can comment this block of code in upload.cgi:

Code: Select all

### Sending data with POST request if need
my $url_post = $c->{url_post} || $ENV{HTTP_REFERER};
      print"Content-type: text/html\n\n";
     $url_post.="\&$_->{name}=$_->{value}" for @har;
     print $cg->redirect( $url_post );
   print"Content-type: text/html\n\n";
   print"<HTML><BODY><Form name='F1' action='$url_post' target='_parent' method='POST'>";
   print"<textarea name='$_->{name}'>$_->{value}</textarea>" for @har;

Return to “XUpload”