| 
<?php
require_once("UploadOperations.inc.php");
 
 $up = new UploadOperations;
 
 ?>
 
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <title>Untitled Document</title>
 </head>
 
 <body>
 <form name="form1" method="post" enctype="multipart/form-data" action="">
 <input type="file" name="file" id="file" size="20">
 <input name="postok" type="submit" id="postok" value="POST">
 </form>
 <?php
 
 if($_FILES){
 
 // (file, maxsize, dir_destino)
 if( $up->UpLoadFile($file, 400000, "uploaded") ) echo "Envoy successfully.";
 
 }
 
 ?>
 </body>
 </html>
 |