feat(icon-upload): proxy management

This commit is contained in:
Fabien Ehrlich
2025-07-31 16:54:44 +02:00
committed by GitHub
parent 6b9f61b0e6
commit dce37c1412

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'])) {