Adding to formdata

420 views
Skip to first unread message

Steve

unread,
Dec 1, 2012, 12:56:58 PM12/1/12
to jquery-f...@googlegroups.com

Hi

There's plenty of good info on how to submit additional form data. I've used the example:

<form ....
    <input type="hidden" name="example1" value="test">


and using firebug I can see this in the POST request as follows:

..-206032829513610 Content-Disposition: form-data; name="example1" test 
..-206032829513610 Content-Disposition: form-data; name="files[]"; filename="uploadthisfile.php" etc.


However, I'm kind of at a dead end as to how to access this additional form data on the PHP side.

$_SERVER['HTTP_CONTENT_DISPOSITION'] is null, so nothing to parse there.
$_POST('example1') ... nothing

Any ideas how to get to this new form data from PHP ??

Thanks
Steve


Steve

unread,
Dec 1, 2012, 1:58:10 PM12/1/12
to jquery-f...@googlegroups.com
Ah sorted.  I'm sure the dumb syntax error is obvious to all and sundry :-(

peppertree...@gmail.com

unread,
May 5, 2013, 10:33:40 PM5/5/13
to jquery-f...@googlegroups.com
I am having the same problem?  Can't see teh Syntax error.  Can you let me in on how you solved this please.

Steve O'Brien

unread,
May 18, 2013, 1:09:14 PM5/18/13
to jquery-f...@googlegroups.com
square brackets needed in PHP  instead of rounded !

$_POST['example1']  

--
You received this message because you are subscribed to the Google Groups "jQuery-File-Upload" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jquery-fileupl...@googlegroups.com.

To post to this group, send email to jquery-f...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

arnaud...@gmail.com

unread,
Aug 31, 2013, 4:19:26 AM8/31/13
to jquery-f...@googlegroups.com


Hi,

Do you mind to show us the javascript fileupload init and event binding you made please ? I have issue to make it works on my side.

regards

Arnaud
Reply all
Reply to author
Forward
0 new messages