Hello, I have a script that uploads some files, often heavy files. When I run the submit it uploads, but does not show anything on screen until the browser copies to the server. I would like to add a progress bar, does it have how? If so, someone has an example. Thanks for following my code.
HTML
<div class="row">
<form method="post" action="#ACTION_CADASTRO#" enctype="multipart/form-data">
<fieldset>
<div class="medium-12 columns">
<input type="file" name="arquivo" id="arquivo">
</div>
</div>
<hr>
<div class="button-group" id="botoes-form">
<button class="success large button fi-check" type="submit"> Enviar Dados</button>
</div>
</fieldset>
</form>
<div>
PHP
if (empty($_FILES['arquivo']['name'])) {
if (move_uploaded_file($_FILES['arquivo']['tmp_name'], $_UP['pasta'] . $nome_final)) {
return "<SCRIPT LANGUAGE='JavaScript' TYPE='text/javascript'>
alert('Arquivo enviado com Sucesso.');
window.location = 'home';
</SCRIPT>";
}
}