Merge pull request #1480 from Nyuwb/patch-1

feat(icon-upload): proxy management
This commit is contained in:
KodeStar
2025-09-10 15:15:48 +01:00
committed by GitHub

View File

@@ -267,6 +267,11 @@ class ItemController extends Controller
],
];
// Proxy management
if (isset(getenv('HTTPS_PROXY')) || isset(getenv('https_proxy'))) {
$options['proxy']['http'] = getenv('HTTPS_PROXY') ?: getenv('https_proxy');
}
$file = $request->input('icon');
$path_parts = pathinfo($file);
if (!isset($path_parts['extension'])) {