From 80fb8d5680a5f201237a181484691d58c9996001 Mon Sep 17 00:00:00 2001 From: Stas Pazhoha Date: Fri, 11 Aug 2017 08:16:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=B0=D0=B7=20=D0=BE=D1=82?= =?UTF-8?q?=20file=5Fget=5Fcontents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/VKApi/Media/BasePhotoUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VKApi/Media/BasePhotoUpload.php b/src/VKApi/Media/BasePhotoUpload.php index 0c016ba..756727e 100644 --- a/src/VKApi/Media/BasePhotoUpload.php +++ b/src/VKApi/Media/BasePhotoUpload.php @@ -53,7 +53,7 @@ protected function getUploadServer($params) protected function uploadPhoto() { - $photo = file_get_contents($this->photo_url); + $photo = $this->http->get($this->photo_url); $rand_name = mt_rand(1, 560234).mt_rand(560234, 760234).mt_rand(760234, 999999).".jpg"; file_put_contents($rand_name, $photo); if (version_compare(PHP_VERSION, '5.5.0', '<=')) {