From 7b308610e59cb6e45ca2cec487a34ad4ddc15927 Mon Sep 17 00:00:00 2001 From: z Date: Fri, 19 Jun 2020 13:39:47 +0800 Subject: [PATCH] * finish task #7289. --- module/file/model.php | 2 +- module/file/view/uploadimages.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/file/model.php b/module/file/model.php index 31a7f04c15..fa53a1802d 100644 --- a/module/file/model.php +++ b/module/file/model.php @@ -205,7 +205,7 @@ class fileModel extends model $file['title'] = $purifier->purify($file['title']); $file['size'] = $_POST['size']; $file['tmpname'] = $tmp_name; - $file['uuid'] = $_POST['uuid']; + $file['uuid'] = str_replace(array('.', DS), '', $_POST['uuid']); $file['pathname'] = $this->setPathName(0, $file['extension']); $file['chunkpath'] = 'chunks' . DS .'f_' . $file['uuid'] . '.' . $file['extension'] . '.part'; $file['chunks'] = isset($_POST['chunks']) ? intval($_POST['chunks']) : 0; diff --git a/module/file/view/uploadimages.html.php b/module/file/view/uploadimages.html.php index 8b60084ff5..38a56a8572 100644 --- a/module/file/view/uploadimages.html.php +++ b/module/file/view/uploadimages.html.php @@ -50,7 +50,7 @@ $('#uploader').uploader({ filters: { mime_types: [ - {title: 'uploadImages', extensions: 'jpg,gif,png,jpeg,.bmp'}, + {title: 'uploadImages', extensions: 'jpg,gif,png,jpeg,bmp'}, ], prevent_duplicates: true },