diff --git a/vimeo.php b/vimeo.php index b845db2..2722436 100644 --- a/vimeo.php +++ b/vimeo.php @@ -493,7 +493,7 @@ public function upload($file_path, $use_multiple_chunks = false, $chunk_temp_dir )); // Clean up - if (count($chunks) > 1) { + if ($use_multiple_chunks) { foreach ($chunks as $chunk) { unlink($chunk['file']); }