Page 1 of 1

POST and postparameters

Posted: Tue Sep 22, 2009 9:42 pm
by frankups1
to set up POST and POSTPARAMETERS is all you need to do:
document.writeln('<PARAM NAME="post" VALUE="http://mysite.com/mypage.php">');
document.writeln('<PARAM NAME="postparameters" VALUE="true');
?

and how would one go about getting the list of files that were uploaded on the php side of things.

Re: POST and postparameters

Posted: Wed Sep 23, 2009 9:06 pm
by support
In your PHP script:
$filename1uploaded = $_POST['filename1'];
$filename2uploaded = $_POST['filename2'];
and so on.

Re: POST and postparameters

Posted: Thu Apr 08, 2010 7:16 pm
by erwinmaes
Will the filenames be the filenames that the client uploaded or the filenames that the applet changed (when duplicate filenames were found and overwrite is off... ) ?

Re: POST and postparameters

Posted: Thu Apr 08, 2010 9:25 pm
by support
Real filename uploaded, some after modification (if any)

Re: POST and postparameters

Posted: Fri Apr 09, 2010 9:53 am
by erwinmaes
Well, I can't seem to get the forward or the post to work... the filenames just don't get sent to the next page....
Where do I add the parameters, in the fileupload .js or in the ipreview .js ?? or in both?

Re: POST and postparameters

Posted: Fri Apr 09, 2010 5:21 pm
by support
ipreview .js

Also, if you want to redirect to an URL after upload then it's not "post" parameter but "forward" parameter that must be used. "forward" sends an HTTP GET and "post" and HTTP POST. HTTP POST discards the HTTP response. See tutorial at:
http://www.jfileupload.com/products/jfi ... irect.html