<?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
}
?>
|