是否有可能从url上传图像到谷歌云使用php


Is it possible to upload image from url to google cloud Using php?

我想使用PHP库从图像URL上传图像到谷歌云存储

可以点击https://cloud.google.com/appengine/docs/php/googlestorage/上传图片

看看这个:

您可以使用这个简单的PHP脚本将文件从一个服务器移动到另一个服务器。

https://shellcreeper.com/move-files-server-to-server-using-simple-php/

是的,您可以使用file_get_contents()来获取图像url

$file = file_get_contents($imageURL);
$object = $bucket->upload
(
    $file,
    [
        'name' => 'image-name.png',
        'predefinedAcl' => 'publicRead'
    ]
);