public function validateFile()
    {
        $totalChunks = $this->request->getTotalChunks();
        $totalChunksSize = 0;

        for ($i = $totalChunks; $i >= 1; $i--) {
            $file = $this->getChunkPath($i);
            if (!file_exists($file)) {
                return false;
            }
            $totalChunksSize += filesize($file);
        }

        return $this->request->getTotalSize() == $totalChunksSize;
    }
public function validateFile()
    {
        $totalChunks = $this->request->getTotalChunks();
        $totalChunksSize = 0;

        for ($i = $totalChunks; $i >= 1; $i--) {
            $file = $this->getChunkPath($i);
            if (!file_exists($file)) {
                return false;
            }
            $totalChunksSize += filesize($file);
        }

        return $this->request->getTotalSize() == $totalChunksSize;
    }
public function validateFile ( ) { $ totalChunks = $ this -> request -> getTotalChunks ( ) ; $ totalChunksSize = 0 ; for ( $ i = $ totalChunks ; $ i >= 1 ; $ i -- ) { $ file = $ this -> getChunkPath ( $ i ) ; if ( ! file_exists ( $ file ) ) { return false ; } $ totalChunksSize += filesize ( $ file ) ; } return $ this -> request -> getTotalSize ( ) == $ totalChunksSize ; }
Check if file upload is complete

@return bool
Check if file upload is complete