From 8228225f09fc944b009ce078870f4f41e09281be Mon Sep 17 00:00:00 2001 From: chencho Date: Wed, 14 Mar 2018 22:52:34 +0100 Subject: [PATCH] Added form to load raml file or url inside the index.phtml --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index 38d4ff8..84de755 100644 --- a/index.php +++ b/index.php @@ -8,6 +8,12 @@ * @license http://www.gnu.org/licenses/gpl-2.0.html GPL v2 */ +if (!empty($_FILES)){ + apc_delete('RAMLsource'); + $RAMLsource=$_FILES['name']['tmp_name']; + apc_store('RAMLsource' , $RAMLsource); + +} if (isset($_POST["name"])) { apc_delete('RAMLsource');