protected function createFullChunkFile($finalPath)
    {
        return new UploadedFile(
            $finalPath,
            $this->file->getClientOriginalName(),
            $this->file->getClientMimeType(),
            filesize($finalPath),
            $this->file->getError(),
            // we must pass the true as test to force the upload file
            // to use a standard copy method, not move uploaded file
            true
        );
    }
protected function createFullChunkFile($finalPath)
    {
        return new UploadedFile(
            $finalPath,
            $this->file->getClientOriginalName(),
            $this->file->getClientMimeType(),
            filesize($finalPath),
            $this->file->getError(),
            // we must pass the true as test to force the upload file
            // to use a standard copy method, not move uploaded file
            true
        );
    }
protected function createFullChunkFile ( $ finalPath ) { return new UploadedFile ( $ finalPath , $ this -> file -> getClientOriginalName ( ) , $ this -> file -> getClientMimeType ( ) , filesize ( $ finalPath ) , $ this -> file -> getError ( ) , // we must pass the true as test to force the upload file // to use a standard copy method, not move uploaded file true ) ; }
Creates the UploadedFile object for given chunk file.

@param string $finalPath

@return UploadedFile
Creates the UploadedFile object for given chunk file .