Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

How to upload file from URL in Azure Blob Storage from PHP? #304

Open
Madhan-Tradezap opened this issue Jul 29, 2021 · 0 comments
Open

How to upload file from URL in Azure Blob Storage from PHP? #304

Madhan-Tradezap opened this issue Jul 29, 2021 · 0 comments

Comments

@Madhan-Tradezap
Copy link

Madhan-Tradezap commented Jul 29, 2021

Hi i want to copy image from URL to Azure storage using php

i am using PHP V8 and i already use file_put_contents to store image from url. How can we do it in Azure Blob Service.

In Regular PHP function

$image_url = "https://lh3.googleusercontent.com/ogw/ADea4I6YscwyB6zY_kLrgUwbZsPx32Fz8bq38jK1AzBo=s32-c-mo"; $pt_source = file_get_contents_curl($image_url); $file_name = "test.png"; $pt_img_to = $fixedDir . $file_name; file_put_contents($pt_img_to, $pt_source);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant