bareta Posted October 5, 2004 Report Share Posted October 5, 2004 ai galera tem como fazer isso.... validar um campo file para ver se foi clicado no procurar e quanto a extensão do arquivo???? Quote Link to comment Share on other sites More sharing options...
0 Gladisson Posted October 5, 2004 Report Share Posted October 5, 2004 É pegar o valor do campo e usar um "split";var ext = document.forms.FORMULARIO.CAMPO.value.split(".");var terminacao = ext[1];alert(terminacao); Quote Link to comment Share on other sites More sharing options...
0 bareta Posted October 6, 2004 Author Report Share Posted October 6, 2004 não entendi nada........ tipo da mais uma explica ai!!! Quote Link to comment Share on other sites More sharing options...
0 Gladisson Posted October 6, 2004 Report Share Posted October 6, 2004 Poste ai o seu script! Quote Link to comment Share on other sites More sharing options...
0 bareta Posted October 7, 2004 Author Report Share Posted October 7, 2004 <form name="form" action="upload.asp" method="post" encyp......><input type="file" name="file1"><input type="submit" value="enviar"> Quote Link to comment Share on other sites More sharing options...
Question
bareta
ai galera tem como fazer isso.... validar um campo file para ver se foi clicado no procurar e quanto a extensão do arquivo????
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.