O
O
oe24y2017-07-24 21:20:06
In contact with
oe24y, 2017-07-24 21:20:06

Vkontakte API (PHP): Is it possible to load pictures not from a file, but set the URL of the picture on the Internet?

For example, there is a photos.getMarketUploadServer method, or any other method for uploading photos.
Is it possible somehow to send to the method for loading not an image located locally, but the URL of an image located on a remote server? Or use some PHP trick?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Esin, 2017-07-24
@Exomode

The documentation clearly states how it works. You get the server, upload the file, then pass its identifier to the right place. And nothing else. If you need to download a picture from another resource - first you need to save it locally, and only then send it to the VK servers. You can download via CURL, stream or file_get_contents().

D
Dimonchik, 2017-07-24
@dimonchik2013

No

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question