<?php
// class
require("classes/UploadOperations.inc.php");
// new Object
$multup = new UploadOperations;
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<!-- FORM 5 FILES -->
<form name="multiupload" enctype="multipart/form-data" method="post" action="">
<input type="file" name="file[]" /><br />
<input type="file" name="file[]" /><br />
<input type="file" name="file[]" /><br />
<input type="file" name="file[]" /><br />
<input type="file" name="file[]" />
<input name="postok" type="submit" id="postok" value="Vai" />
</form>
<?php
if(isset($_POST['postok'])) {
// receptor
$foto = $_FILES['file'];
// metodo (file, maxsize, uploadir)
$multup->MultiUpload($foto, 50000, "uploadir");
}
?>
</body>
</html>
|