PHP Classes

File: exemple.html

Recommend this page to a friend!
  Classes of Aderbal Nunes   Upload Operations   exemple.html   Download  
File: exemple.html
Role: Example script
Content type: text/plain
Description: example
Class: Upload Operations
Validate and process files uploaded via Web forms
Author: By
Last change:
Date: 17 years ago
Size: 594 bytes
 

Contents

Class file image Download
<?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>