public function deleteChunks()
    {
        $totalChunks = $this->request->getTotalChunks();

        for ($i = 1; $i <= $totalChunks; $i++) {
            $path = $this->getChunkPath($i);
            if (file_exists($path)) {
                unlink($path);
            }
        }
    }
public function deleteChunks()
    {
        $totalChunks = $this->request->getTotalChunks();

        for ($i = 1; $i <= $totalChunks; $i++) {
            $path = $this->getChunkPath($i);
            if (file_exists($path)) {
                unlink($path);
            }
        }
    }
public function deleteChunks ( ) { $ totalChunks = $ this -> request -> getTotalChunks ( ) ; for ( $ i = 1 ; $ i <= $ totalChunks ; $ i ++ ) { $ path = $ this -> getChunkPath ( $ i ) ; if ( file_exists ( $ path ) ) { unlink ( $ path ) ; } } }
Delete chunks dir
Delete chunks dir