I ran a cPanel test and the upload works, but the CWP server is not sending the file.
No error appears, shows all the upload procedure, it registers in the database, but the file does not send.
My code:
<?php
if ((isset($_POST["form"])) && ($_POST['form'] == "form1")) {
$ext = strtolower(substr($_FILES['arquivo']['name'],-4)); //Pegando extensão do arquivo
$arquivo = "file_".date('dmYhis') . $ext; //Definindo um novo nome para o arquivo
$dir = __DIR__.'/uploads/aulas/'; //Diretório para uploads
move_uploaded_file($_FILES['arquivo']['tmp_name'], $dir.$arquivo); //Fazer upload do arquivo
}
?>
<form id="form" method="post" autocomplete="off" enctype="multipart/form-data">
<div class="row">
<div class="col-xs-6">
<div class="form-group">
<label class="control-label">Arquivo (.zip .rar .pdf)</label>
<input name="arquivo" type="file" id="file-1" required />
</div>
</div>
<button type="submit" id="button" name="button" class="btn btn-success pull-right"><i class="icon-save bigger-110"></i> Salvar</button>
</form>