dropzonejs and wait time to upload a photo


I am using dropzone and I have the following code:

<form class="dropzone dz-clickable dz-started" method="post" action="comprueba.php" enctype="multipart/form-data">
<div id="footdrop">
<input style="visibility: hidden; position: absolute; top: 0px; left: 0px; height: 0px; width: 0px;" class="dz-hidden-input" type="file" multiple="multiple" name="file">

<div id="footenviar" align="center">    
<input type="submit" name="enviar" value="Enviar" class="boton" />
     <input type="hidden" name="ref" value="<?php echo $ref ?>">
     <input type="hidden" name="revisado" value="0">
     <input type="hidden" name="subida" value="1">

When I drag a file if I wait a short time when I submit to the submit, I do not upload the file, I think the browser cache does not allow time to load it. Any solution?

asked by Jaroso Jaroso 22.04.2016 в 18:39

1 answer


Seeing the documentation , a solution would be to deactivate the submit button in the addedfile event, and re-enable it in the event complete

answered by 24.04.2016 в 22:39