void
checkDirectoryStatus
( $folder)
Redefined in descendants as:
Check if the uploading file already exists
bool
checkIfFileExists
(string $filename)
-
string
$filename: full filename of the the file to be checked
Redefined in descendants as:
count items in a folder
int
countItemsInDirectory
(string $folder)
-
string
$folder: path of the folder you want the item count of
Redefined in descendants as:
void
createDirectory
(string $folder)
-
string
$folder: folder name to be created
Redefined in descendants as:
Detect the file type of an uploading file NOTE: this does NOT validate this just says what type of file it is
void
detectFileType
(string $file)
-
string
$file:
the file to be checked
$return void
Check that there is indeed an image present throw exception
boolean
fileIsNotEmpty
(int $fileSize)
-
int
$fileSize: filesize of an image
Check to make sure the file isn't over the maximum allowed filesize Max Allowed Filesize: 5MB throw exception
boolean
fileSmallEnoughForUpload
(int $fileSize)
-
int
$fileSize: filesize of an image
void
getErrorLogFilename
()
Redefined in descendants as:
void
getFileType
()
Redefined in descendants as:
void
getFileTypeForUpload
()
void
getMaxUploadSize
()
Redefined in descendants as:
void
getNumberOfAllowedFilesToUpload
()
int
getNumberOfErrorsDuringUpload
()
Redefined in descendants as:
void
getNumberOfFilesPerDirectory
()
Redefined in descendants as:
void
getNumberOfSuccessfulUploads
()
Redefined in descendants as:
void
getPrependToFileName
()
void
inParentDirectory
([ $input = true])
Check to make sure the file is an acceptable file for upload throw exception
boolean
isAcceptableFileType
(string $fileType)
-
string
$fileType: The file type of an image
string
returnAllUploadErrorCodes
()
Redefined in descendants as:
string
returnAllUploadErrorMessages
()
Redefined in descendants as:
string
returnAllUploadErrorsFileName
()
string
returnAllUploadErrorsLineNumber
()
Redefined in descendants as:
string
returnFormattedErrors
()
Redefined in descendants as:
string
returnUploadErrorCodeAtIndex
(int $index)
-
int
$index: index of desired error code
Redefined in descendants as:
string
returnUploadErrorFileNameAtIndex
(int $index)
-
int
$index: index of desired line number
string
returnUploadErrorLineNumberAtIndex
(int $index)
-
int
$index: index of desired line number
string
returnUploadErrorMessageAtIndex
(int $index)
-
int
$index: index of desired error message
Redefined in descendants as:
string
returnUserReadableUploadErrorCodes
()
Redefined in descendants as:
string
returnUserReadableUploadErrorMessages
()
Redefined in descendants as:
void
setErrorLogFilename
( $input)
Redefined in descendants as:
void
setFileType
( $input)
Redefined in descendants as:
void
setFileTypeForUpload
( $input)
void
setMaxUploadSize
(int $input)
Redefined in descendants as:
void
setNumberOfAllowedFilesToUpload
( $input)
void
setNumberOfFilesPerDirectory
( $input)
Redefined in descendants as:
void
setPrependToFileName
(string $input)
-
string
$input: whatever you would like prepended to the filename (max: 20 characters)
Run the validation tests for the image
ex. check if it's indeed an image check if under maximum size Perhaps down the road have a minium size (it is currently at zero)
boolean
validateFile
( $fileName, string $fileSize, string $fileType)
-
string
$fileSize: file size of the image to be checked
-
string
$fileType: file type of the image to be checked
-
$fileName
Write all upload errors to an error log
void
writeAllErrorsToLog
()
Redefined in descendants as: