瀏覽代碼

Update to upload, and create uploadfolder.

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

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

33
 
33
 
34
         if (empty($errors)) {
34
         if (empty($errors)) {
35
             // Do fileupload
35
             // Do fileupload
36
+            
37
+            $makeUpload = move_uploaded_file($tempname, Config::$file_path);
38
+            
39
+            if (!$makeUpload) {
40
+                $errors[] = "Der opstod en fejl under upload af billedet.";
41
+            } else {
42
+                return true;
43
+            }
44
+            
36
         }
45
         }
37
     }
46
     }
38
 
47
 

+ 0
- 0
img/uploads/index.php 查看文件


Loading…
取消
儲存