瀏覽代碼

Small error in the filepath fixed.

tags/rls1
kenn408k 6 年之前
父節點
當前提交
e43bca8cab
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      classes/upload.class.php

+ 1
- 1
classes/upload.class.php 查看文件

@@ -32,7 +32,7 @@ class Upload {
32 32
         $randomname = Upload::generateRandomString(); // We give our file a random name - It will be this.
33 33
 
34 34
         $cwd = getcwd(); // Our websites CWD (Current working dir)
35
-        $uploadPath = $cwd . Config::$file_path . $randomname . '.' . $extension;
35
+        $uploadPath = $cwd .'/'. Config::$file_path . $randomname . '.' . $extension;
36 36
 
37 37
         if (!in_array($extension, Config::$file_types)) {
38 38
             // Error! This file does not have an acceptable filetype

Loading…
取消
儲存