ソースを参照

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,6 +33,15 @@ class Upload {
33 33
 
34 34
         if (empty($errors)) {
35 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 ファイルの表示


読み込み中…
キャンセル
保存