protected function saveToTempFile()
    {
        // Convert uploaded file to an array
        $aFiles = [];
        foreach($this->aUserFiles as $sVarName => $aUserFiles)
        {
            $aFiles[$sVarName] = [];
            foreach($aUserFiles as $aUserFile)
            {
                 $aFiles[$sVarName][] = $aUserFile->toTempData();
            }
        }
        // Save upload data in a temp file
        $sUploadDir = $this->getUploadTempDir();
        $this->sTempFile = uniqid();
        file_put_contents($sUploadDir . $this->sTempFile . '.json', json_encode($aFiles));
    }
protected function saveToTempFile()
    {
        // Convert uploaded file to an array
        $aFiles = [];
        foreach($this->aUserFiles as $sVarName => $aUserFiles)
        {
            $aFiles[$sVarName] = [];
            foreach($aUserFiles as $aUserFile)
            {
                 $aFiles[$sVarName][] = $aUserFile->toTempData();
            }
        }
        // Save upload data in a temp file
        $sUploadDir = $this->getUploadTempDir();
        $this->sTempFile = uniqid();
        file_put_contents($sUploadDir . $this->sTempFile . '.json', json_encode($aFiles));
    }
protected function saveToTempFile ( ) { // Convert uploaded file to an array $ aFiles = [ ] ; foreach ( $ this -> aUserFiles as $ sVarName => $ aUserFiles ) { $ aFiles [ $ sVarName ] = [ ] ; foreach ( $ aUserFiles as $ aUserFile ) { $ aFiles [ $ sVarName ] [ ] = $ aUserFile -> toTempData ( ) ; } } // Save upload data in a temp file $ sUploadDir = $ this -> getUploadTempDir ( ) ; $ this -> sTempFile = uniqid ( ) ; file_put_contents ( $ sUploadDir . $ this -> sTempFile . '.json' , json_encode ( $ aFiles ) ) ; }
Save uploaded files info to a temp file

@return void
Save uploaded files info to a temp file