<?
 
    require_once'uploadfer.php';
 
    $datos=$_FILES['archivo'];
 
    if($datos['name']!="")
 
    {
 
        if($datos['error']==0)
 
        {
 
            $obj=new archivo ($datos,"../images/","si","altoX705");
 
            if($obj)
 
            {
 
                $obj->subirArchivo();
 
                }
 
        }
 
        else
 
        {    
 
            echo "Ha ocurrido un error tipo ".$datos['error']." al cargar el archivo ";
 
        }
 
    }
 
 
 
?>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 
<title>Documento sin título</title>
 
</head>
 
 
<body>
 
<form action="ejemplo.uploadfer.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
 
  <label>
 
  <input name="archivo" type="file" id="archivo" />
 
  </label>
 
  <label>
 
  <input type="submit" name="Submit" value="Enviar" />
 
  </label>
 
</form>
 
</body>
 
</html>
 
 
 |