From 7c66021115a74744e9db2a89ff4d9a1382d63a0f Mon Sep 17 00:00:00 2001 From: Greg Stallings Date: Mon, 23 Apr 2012 21:50:39 -0700 Subject: [PATCH] Update chunk file removal for case when is true but only 1 chunk is created --- vimeo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); }