title: Dropzone.js remove file link not working
body: <p>This is my index page    </p>
  
  <pre><code>    &lt;link rel="stylesheet" type="text/css" href="style/dropzone.css" /&gt;
  &lt;script type="text/javascript" src="scripts/dropzone.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  if(typeof Dropzone != 'undefined')
  {
      Dropzone.autoDiscover = false;
      var myDropzone = new Dropzone("#myDropzone", {
          url: "parser.php",
          maxFileSize: 50,
          acceptedFiles: ".pdf",
          addRemoveLinks: true,
          removedfile: function(file){
              var name = file.name;
              $.ajax({
                  type: 'POST',
                  url: 'delete.php',
                  data: "name="+name,
                  dataType: 'html'
              });
              var _ref;
              return(_ref = file.previewElement) != null ? _ref.parentNode.removeChild(file.previewElement) : void 0;
          }
      };
      )
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>
  
  </p>
  
  <p>and this is my delete.php page</p>
  
  <pre><code>    &lt;?php
  if(isset($_POST['name'])){
      $name= $_POST['name'];
      $con=new PDO("mysql:host=localhost;dbname=newimg","root","");
      $sql =$con-&gt;prepare("DELETE FROM attempt010 WHERE name='$name'");
      $sql-&gt;execute();
      echo PDO:errorInfo;
  }
  ?&gt;
  </code></pre>
  
  <p>It's showing remove file link and it's working on the client side... it's deleting the image preview but it's not working on the server side.. it's not at all going to the delete page.. </p>