My upload form may be opened from different pages of my web site and I would like the user to return to the originating page. Can I capture the url the upload is invoked, and dynamically put that url in the url_post variable?
Thanks. Everything else is working just fine. I think you have a great product.
XUpload - Dynamic url_post??
1/ Replace in upload.cgi :
with
2/ Add a input hidden url_post in your form with absolute url
Code: Select all
my $url_post = $c->{url_post} || $ENV{HTTP_REFERER};
Code: Select all
my $url_post = $cg->param('url_post') || $c->{url_post} || $ENV{HTTP_REFERER};