This commit is contained in:
Taysir-25 2026-07-01 05:12:39 -07:00 committed by GitHub
commit f3927b5970
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,11 @@ class ImageUploader implements ImageUploaderInterface
$image->setPath($path);
$this->filesystem->write($image->getPath(), file_get_contents($file->getPathname()));
$stream = fopen($file->getPathname(), 'r');
$this->filesystem->writeStream($image->getPath(), $stream);
if (is_resource($stream)) {
fclose($stream);
}
}
public function remove(string $path): bool