Quantcast
Viewing all articles
Browse latest Browse all 14190

Verificar arquivo em anexo

Bom dia, tenho um sistema php onde é obrigatório o envio de um pdf através da função validar:

 

 

 function Validar(){
  if (!(validaObrigatorio(document.frmSolicitacao.txtArquivo, 'Campo Anexar Arquivo obrigatório!'))) return false;
  return true;

  } 

...

...

...

 Anexar Arquivo: 
            <span class="style1">*</span><input class="file" name="txtArquivo" type="file" size="100%" onBlur="validaObrigatorio(this, 'Campo Arquivo obrigatório!')"/></td>
 
mas está gravando muitos pedidos sem o anexo junto. Como poderia estar verificando na hora da gravação se realmente ele foi gravado? 

Viewing all articles
Browse latest Browse all 14190

Trending Articles