php - How to send extra field data to the backend using Uploadify 3.0? -


has used uploadify version 3.0 beta? having difficulty implement it. there no documentation available @ moment. if has used script please let me know how send fields data backend php file. here's i'm trying (and doesnt work) :

<script type="text/javascript">     $(document).ready(function() {       $("#file_upload").uploadify({     "swf"  : "uploadify.swf",     "uploader"    : "uploadify.php",     "cancelimage" : "uploadify-cancel.png",     "auto"      : true,      "onuploadstart" : function(){         $("#file_upload").uploadifysettings("postdata",{                     "name": $("#name").val(),                                          },0);         },          })     }); </script> 

html:

<fieldset>     <form id="upload_form" action="" method="post" enctype="multipart/form-data">     name:<input type="text" name="name" id="name"/>     <input type="hidden" name="userid" id="userid" value="1" /><br />     choose file:<input type="file" id="file_upload" name="file_upload" />     <div id="recordholder" style="display:none"></div>     </form> </fieldset> 

you can try :

'onuploadstart' : function(){ $('#mugshot_upload_new').uploadifysettings(     'postdata',      {         "name": $("#name").val(),         "userid": $("#userid").val()     } ); }, 

without "0" @ end. works me.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -