From b112c67eb60567b7043f8a26f4778bf6bb562dc4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 14 Jun 2018 18:14:07 +0200 Subject: [PATCH] edit: optional target upload directory Prepare for categorisation, for example supplying user paths. --- edit/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/edit/index.php b/edit/index.php index 5c5ee3d..6f4dc4d 100644 --- a/edit/index.php +++ b/edit/index.php @@ -13,6 +13,7 @@ if ($_FILES) { throw new Exception('bestand niet goed ontvangen: '.$img['error']); $datadir = implode('/', ['data', date('Y')]); + if ($Args) $datadir .= $Args; if (!file_exists($datadir) and !@mkdir($datadir, 0777, TRUE)) { throw new Exception("bestand kon niet geplaatst worden in $datadir"); } -- 2.30.0