Page 1 of 1

HTTP Post in JFU (ftp) mode.

Posted: Sun Jan 27, 2008 9:18 pm
by import
Hi Guys.

I just tried solve following problem.

User is able to upload files on my Server.
(okay,, user should be able :P)
He can upload unlimited files at one time (using an simple PHP/HTML GUI), and files are stored in an folder on server like they have to.
Furthermore names of files should be saved in a MySQL DB with the user_id (user_id is in a hidden text field under the upload client)
And here comes the problem!
The Script is sending HTTP POST each time a file is finished uploading. But only the filenames (parameters) are send. But not my hidden text field.

So is there any way to send hidden input types with HTTP POST?

(extract from my 'applet_ftp.js')
[...]
document.writeln('<PARAM NAME="post" VALUE="http://www.myserver.com/folder/folder/f ... an-be.made">');

document.writeln('<PARAM NAME="postparameters" value="true">');
[...]



Regards
TabBin

Re: HTTP Post in JFU (ftp) mode.

Posted: Sun Jan 27, 2008 9:19 pm
by import
Yes, you can pass any extra parameter with in APPLET or in JavaScript. Then the applet will post them if you setup:
<PARAM NAME="postparameters" value="extra">