What I'm looking for is to activate the hidden submit with another button. for example: when the data of a form is filled it will be sent with a Generic button since this generic button evaluates or validates all the fields; therefore I am looking for the generic button to evaluate if there is a file in the (file) and then send all the data of those fields.
NOTE:
1 * I am looking for Validate the (file) to force the user to upload a file
2 * The file must be sent with a generic button that gathers all the fields whose purpose is to validate and send with a single button
const subir_btn = document.getElementById('subir_btn');
const send = document.getElementById('send');
send.addEventListener("click",function () {
subir_btn.click();
});
<div class="form-group">
<label class="control-label">Subir Archivo de su Propuesta </label>
<div class=""><br>
<form name="enviar_archivo_frm" method="POST" action="subir-archivo.php" enctype="multipart/form-data" >
<input type="file" name="archivo_fls" accept=".pdf,.doc">
<input type="submit" id="subir_btn" name="subir_btn" Value="Subir Archivo" hidden="hidden">
</form>
</div>
</div>
<div class="form-group">
<button class="btn btn-danger btn-lg btn-block" id="send" type="button">GUARDAR DATOS</button>
</div>