POST and postparameters

Image previewer add-on.

POST and postparameters

Postby frankups1 » Tue Sep 22, 2009 9:42 pm

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.
frankups1
 
Posts: 8
Joined: Tue Sep 22, 2009 9:38 pm

Re: POST and postparameters

Postby support » Wed Sep 23, 2009 9:06 pm

In your PHP script:
$filename1uploaded = $_POST['filename1'];
$filename2uploaded = $_POST['filename2'];
and so on.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: POST and postparameters

Postby erwinmaes » Thu Apr 08, 2010 7:16 pm

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... ) ?
erwinmaes
 
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Re: POST and postparameters

Postby support » Thu Apr 08, 2010 9:25 pm

Real filename uploaded, some after modification (if any)
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: POST and postparameters

Postby erwinmaes » Fri Apr 09, 2010 9:53 am

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?
erwinmaes
 
Posts: 3
Joined: Thu Apr 08, 2010 7:15 pm

Re: POST and postparameters

Postby support » Fri Apr 09, 2010 5:21 pm

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
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm


Return to JImageUpload



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.