File: Lou_up_file.php

Recommend this page to a friend!
  Classes of António Lourenço  >  Lou Up File  >  Lou_up_file.php  >  Download  
File: Lou_up_file.php
Role: Example script
Content type: text/plain
Description: example
Class: Lou Up File
Process files uploaded via Web forms
Author: By
Last change:
Date: 6 years ago
Size: 469 bytes
 

 

Contents

Class file image Download
<?php

/* Lou_up_file, v.1.0 2014/09/01 by Antlou */

require_once('Lou_up_file.class.php');

    if(!empty(
$_POST))
     {
       
// Upload(name of form, type, directory)
       
$upload = new Up('news', 'text/plain', 'up_news/');
     }
    else
    {
?>

    <form action="#" enctype="multipart/form-data" method="post">
        Ficheiro / File :<input type="file" name="news"/>
        <input type="submit" name="submit" value="Carregar / Upload" />
    </form>

<?php
   
}
?>


For more information send a message to info at phpclasses dot org.