Skip to content

Commit

Permalink
Merge pull request #313 from mani95lisa/patch-1
Browse files Browse the repository at this point in the history
fix Temporary upload bug
  • Loading branch information
overtrue committed Mar 3, 2016
2 parents e287f31 + 6c78b40 commit 6579fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Material/Temporary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]]);
}

/**
Expand Down

0 comments on commit 6579fed

Please sign in to comment.