[line 40]
[line 45]
[line 69]
[line 81]
[line 75]
[line 22]
[line 17]
[line 28]
[line 34]
[line 57]
[line 51]
[line 63]
KT_fileUpload KT_fileUpload( )
sets initialise some class members;
nothing; checkExtensions( )
The name is checked against the this.allowedTypes array.
nothing; checkFileName( mixed $fileName, string $filename)
nothing; checkFolder( )
If the folder does not exists, try to create it. If the folder does not have write permissions or if could not create it, set error.
nothing; checkSize( )
The size is checked against the this.minSize and this.maxSize
nothing; checkUpload( )
array getError( )
string getTempName( string $filename)
Ex: filename = 'zone.jpg', and zone_1.jpg alreagy exists, the new file name is zone_2.jpg.
boolean hasError( )
nothing; RollBack( )
nothing; setAllowedExtensions( array $allowedExtensions)
nothing; setAutoRename( boolean $autoRename)
nothing; setFileInfo( string $fileInfo)
nothing; setFolder( string $folder)
nothing; setMaxSize( integer $maxSize)
nothing; setMinSize( integer $minSize)
nothing; setRequired( boolean $isRequired)
string uploadFile( string $fileName, [string $oldFileName = ""])
The destination file = folder + fileName