From 7c5bcc1d0e398ca08e08bcc3e5e3a9f6966d959d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 19 Apr 2018 21:02:06 +0200 Subject: [PATCH] Support multipart/form-data content type Resolves: https://github.com/cweiske/anoweco/issues/6 --- www/micropub.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/micropub.php b/www/micropub.php index c0c01b4..3cbfbe8 100644 --- a/www/micropub.php +++ b/www/micropub.php @@ -177,7 +177,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') { } list($ctype) = explode(';', $_SERVER['CONTENT_TYPE'], 2); $ctype = trim($ctype); - if ($ctype == 'application/x-www-form-urlencoded') { + if ($ctype == 'application/x-www-form-urlencoded' + || $ctype == 'multipart/form-data' + ) { if (!isset($_POST['action'])) { $_POST['action'] = 'create'; } -- 2.30.2