0

that's the code i used to upload my file dropped when i click on the button submit of my form.

My div is droppable, but when i click on the button, nothing append... I don't know if there is a problem with a document ready or somehting..

  Dropzone.autoDiscover = false;
  jQuery(document).ready(function() {
  var myDropzone = new Dropzone(element, {
  url: "/upload.php",                        
  autoProcessQueue: false,
  });

  $('#imgsubbutt').click(function(){           
  myDropzone.processQueue();
  });
  });

1 Answer 1

3

Try submit() event for form

$('#imgsubbutt').submit(function(){           
 myDropzone.processQueue();
});
Sign up to request clarification or add additional context in comments.

2 Comments

It's works, but i discover that's my problem hide an other: On network, i got a 200 response that's say moove file fail.
share your code , how you move file. I have given solution to your titled question. so you should first accept answer !!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.