![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/05/2002, 02:27
|
| | Fecha de Ingreso: mayo-2001
Mensajes: 57
Antigüedad: 23 años, 9 meses Puntos: 1 | |
Re: enviar archivo a email este es el codigo para subir archivos
<html>
<head>
<!-- Copiar dentro del tag HEAD -->
<script LANGUAGE="JavaScript">
extArray = new Array(".gif", ".jpg");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("") != -1)
file = file.slice(file.indexOf("") + 1);
ext = file.slice(file.indexOf(".")).toLowerCas e();
for (var i = 0; i < extArray.length; i++) {
if (extArray == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("Se permiten únicamente archivos con la extención: "
+ (extArray.join(" ")) + "
Por favor, seleccione otro archivo "
+ "e intente de nuevo.");
}
</script>
</head> |