jQuery form plugin - Uncaught TypeError on file upload


there is no problem when I don't select any file for upload, when I just fill the other inputs than post form, It's working. but when I choose a file for image upload than post it, I'm getting this error, but when I look folder, I see that file uploaded. but javascript failed.

jquery.form.js:357 Uncaught TypeError: Object function (a,b){return new d.fn.init(a,b,g)} has no method 'handleError'

here is my code,

<form id="employeeaddform" class = "classform" enctype="multipart/form-data" action="inc/employeeadd.php" method="post">

<input type="file" size="32" name="my_field" value="" />

<p class="button"><input type="hidden" name="action" value="image" /> <label for="nname">Personal Name : </label> <input name="nname" id="nname" type="text" tabindex="11" /> <br /> <label for="ninformation">Information : </label> <textarea id="ninformation" name="ninformation"></textarea> <div align="center"> <input id="button1" type="submit"/> <input id="button2" type="reset" /> </div> </form> <script type="text/javascript"> $(document).ready(function(){ var options_employeeadd = { beforeSubmit: validate_employeeadd, // pre-submit callback success: showResponse_employeeadd // post-submit callback }; $('#employeeaddform').ajaxForm(options_employeeadd); }); function validate_employeeadd(formData, jqForm, options) {...} function showResponse_employeeadd(responseText, statusText, xhr, $form) {...}


The latest version of jquery form doesn't use 'handelError'. Download it here: <a href="https://github.com/malsup/form/blob/master/jquery.form.js" rel="nofollow">https://github.com/malsup/form/blob/master/jquery.form.js</a>


  • how can I parse audio raw data recorder with gstreamer?
  • ROC on multiple test sets in h2o (python)
  • Why last name does not show in Knockout js sample
  • MPI cluster based parallel calculation in R on WestGrid (pbs file)
  • How to generate key hash for Facebook?
  • Get File Extension of File Dropped Onto Windows Form [closed]
  • How secure is https?
  • Write to elasticsearch from spark is very slow
  • SQL Server version 612 , 655?
  • What Exception is thrown on timeout?
  • Floating parent div grows to hypothetical width of floating child div
  • Calculate time from document
  • 'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs
  • Amazon Elastick BeanStalk error: Failed to create the AWS Elastic Beanstalk application version
  • Cloud Code: Creating a Parse.File from URL
  • how to run ejabberd with Erlang on Heroku?
  • Terminal run dalvikvm with am.jar
  • How to handle div that is created dynamically in a table
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Functions by reference or by variable, which to use when?
  • Make checkout phone field optional for specific countries in WooCommerce
  • Codeigniniter insert data through models and controller
  • Cross compile glibc for arm, got undefined reference to some unwind functions
  • How to use FirstOrDefault inside Include
  • How do I use TagLib-Sharp to write custom (PRIV) ID3 frames?
  • PHP Permalinks.. how to change?
  • CAS 4 - Not able to retrieve the LDAP groups after successful authentication
  • Running R's aov() mixed effects model from Python using rpy2
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?
  • ReferenceError: TextEncoder is not defined
  • JavaScript RegExp Replace