PHP Classes
elePHPant
Icontem

File: file_upload_class

Recommend this page to a friend!
  Classes of ashwin suresh morey  >  fileUp  >  file_upload_class  >  Download  
File: file_upload_class
Role: Documentation
Content type: text/plain
Description: document file explaining the class
Class: fileUp
Manage image uploads
Author: By
Last change:
Date: 14 years ago
Size: 736 bytes
 

 

Contents

Class file image Download
Class Name:upload
Description:class to upload the file to specific location
Constructor: 
upload($fileName, $tempFileLoc, $fileSize, $fileType, $fileDir)
This constructor sets the values of these variables and calls the fileUpTempLoc() function to check the whether file is uploaded to the temporary location.

Methods:
fileUp()
to check whether file is uploaded or not to the temporary location

dirExists()
to check whether destination directory exists

fileAlreadyExists()
to check whether file is already there else move the file to the destination

Pre-requisite for using the class:
Virtual directory should be set
Url of the class:

for usage of the class, please refer to source code of example.php file.