From 6c78b40e95d40f6fc67b1453a80c5c8b75f176d7 Mon Sep 17 00:00:00 2001 From: Mani Wang Date: Thu, 3 Mar 2016 16:58:25 +0800 Subject: [PATCH] fix Temporary upload bug --- src/Material/Temporary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Material/Temporary.php b/src/Material/Temporary.php index d6597a16a..60f0c26cc 100644 --- a/src/Material/Temporary.php +++ b/src/Material/Temporary.php @@ -103,7 +103,7 @@ public function upload($type, $path) throw new InvalidArgumentException("Unsupported media type: '{$type}'"); } - return $this->parseJSON('upload', [self::API_UPLOAD, ['media' => $path]]); + return $this->parseJSON('upload', [self::API_UPLOAD, ['media' => $path], ['type'=> $type]]); } /**