From fb72d49b4c8a4705b0286ff64b2f6ea936828f15 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Wed, 24 Jun 2026 10:02:11 +0000 Subject: fix curl uploads - allow PUT as well --- upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.php b/upload.php index 34c7668..c13b193 100644 --- a/upload.php +++ b/upload.php @@ -6,7 +6,7 @@ if (isset($_GET['df'])) { system("df -h --output=avail / | tail -1"); exit; } -if ($_SERVER['REQUEST_METHOD'] != 'POST') { +if ($_SERVER['REQUEST_METHOD'] != 'POST' && $_SERVER['REQUEST_METHOD'] != 'PUT') { exit; } -- cgit v1.3.1-10-gc9f91