Skip to content

Changing the save_remote_image to use HttpClient#107

Merged
armanist merged 1 commit into
quantum-php:masterfrom
live-soft:master
Dec 26, 2024
Merged

Changing the save_remote_image to use HttpClient#107
armanist merged 1 commit into
quantum-php:masterfrom
live-soft:master

Conversation

@live-soft

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread helpers/functions.php
$imageName = slugify($imageName) . '.jpg';

$fs->put(uploads_dir() . DS . $userDirectory . DS . $imageName, $fs->get($imageUrl));
$httpClient = new HttpClient();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add try-catch block

@armanist armanist merged commit abb5267 into quantum-php:master Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants