public function File::deleteChunks in One Click Upload 7.2
Delete chunks dir
1 call to File::deleteChunks()
- File::save in flowphp/
src/ Flow/ File.php - Merge all chunks to single file
1 method overrides File::deleteChunks()
- MongoFile::deleteChunks in flowphp/
src/ Flow/ Mongo/ MongoFile.php - Delete chunks dir
File
- flowphp/
src/ Flow/ File.php, line 206
Class
Namespace
FlowCode
public function deleteChunks() {
$totalChunks = $this->request
->getTotalChunks();
for ($i = 1; $i <= $totalChunks; $i++) {
$path = $this
->getChunkPath($i);
if (file_exists($path)) {
unlink($path);
}
}
}