POST and postparameters

Image previewer add-on.
Post Reply
frankups1
Posts: 8
Joined: Tue Sep 22, 2009 9:38 pm

POST and postparameters

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: POST and postparameters

Post by support »

In your PHP script:
$filename1uploaded = $_POST['filename1'];
$filename2uploaded = $_POST['filename2'];
and so on.

erwinmaes
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Re: POST and postparameters

Post 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... ) ?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: POST and postparameters

Post by support »

Real filename uploaded, some after modification (if any)

erwinmaes
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Re: POST and postparameters

Post 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?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: POST and postparameters

Post 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

Post Reply