From a081a6fd9e8fd6a75cc95c1f1b4062c360f0fc0b Mon Sep 17 00:00:00 2001 From: niekt0 Date: Wed, 3 Nov 2010 01:55:00 +0100 Subject: [PATCH] upload files fix --- wwwroot/inc/eventz/upload_data_file.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wwwroot/inc/eventz/upload_data_file.inc b/wwwroot/inc/eventz/upload_data_file.inc index ea00274..070d758 100644 --- a/wwwroot/inc/eventz/upload_data_file.inc +++ b/wwwroot/inc/eventz/upload_data_file.inc @@ -26,6 +26,8 @@ function upload_data_file() { mkdir(FILE_DIR.$_SESSION['user_id']); } + $suffix = array_pop(explode('.', basename($_FILES['data_file']['name']))); + if ($suffix=='zip' && $_POST['unzip']) { mkdir(TMP."/".$_FILES['data_file']['name']); -- 2.30.2