dropzonejs and wait time to upload a photo

0

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

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
source

1 answer

1

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