public static function fromTempData(array $aFile)
    {
        $xFile = new UploadedFile();
        $xFile->sType = $aFile['type'];
        $xFile->sName = $aFile['name'];
        $xFile->sFilename = $aFile['filename'];
        $xFile->sExtension = $aFile['extension'];
        $xFile->sSize = $aFile['size'];
        $xFile->sPath = $aFile['path'];
        return $xFile;
    }
public static function fromTempData(array $aFile)
    {
        $xFile = new UploadedFile();
        $xFile->sType = $aFile['type'];
        $xFile->sName = $aFile['name'];
        $xFile->sFilename = $aFile['filename'];
        $xFile->sExtension = $aFile['extension'];
        $xFile->sSize = $aFile['size'];
        $xFile->sPath = $aFile['path'];
        return $xFile;
    }
public static function fromTempData ( array $ aFile ) { $ xFile = new UploadedFile ( ) ; $ xFile -> sType = $ aFile [ 'type' ] ; $ xFile -> sName = $ aFile [ 'name' ] ; $ xFile -> sFilename = $ aFile [ 'filename' ] ; $ xFile -> sExtension = $ aFile [ 'extension' ] ; $ xFile -> sSize = $ aFile [ 'size' ] ; $ xFile -> sPath = $ aFile [ 'path' ] ; return $ xFile ; }
Create an instance of this class using data from an array.

@param array         $aFile          The uploaded file data

@return UploadedFile
Create an instance of this class using data from an array .