Answer the question
In order to leave comments, you need to log in
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
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().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question