What's new? | Help | Directory | Sign in
Google
phpsimpl
PHP Simpl framework - Simple CRUD framework that does much more.
  
  
  
  
    
Search
for
Updated May 11, 2007 by nick.denardis
Labels: Phase-Implementation
Upload  
API of the Upload Class

Introduction

The Upload class is used to upload files to the server. Its task is to wrap upload functions in a clean interface.

Example

Need Example

Functions

Upload

Upload($data, $directory) -> NULL

Upload constructor, takes the $FILES data from the form and the dirtory where the file will be stored

CheckData

CheckData($accepted_types, $max_size) -> Array

Checks the file that will be uploaded against an array of accepted_types and a size constraint in bytes

UploadFile

UploadFile() -> Boolean

Uploads the file to the server in the directory specified and returns if it was successful


Sign in to add a comment