Login   Register  
PHP Classes

File: example-upload.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Unay Santisteban  >  Simple Uploader  >  example-upload.php  >  Download  
File: example-upload.php
Role: Example script
Content type: text/plain
Description: Example of class usage
Class: Simple Uploader
Validate and save uploaded files
Author: By
Last change:
Date: 9 months ago
Size: 445 bytes


Class file image Download
include 'upload.class.php';
if (isset(
$_FILES['file'])) {
$uploaded = new Upload($_FILES['file']);

$types  = array('image/png');
$ext    = array('png');
$size   1;
$estado $uploaded->save('stored/');

"Imagen Guardada correctamente.";

    } else {
"Imagen no valida.";