Browse Source

Small error in the filepath fixed.

tags/rls1
kenn408k 6 years ago
parent
commit
e43bca8cab
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      classes/upload.class.php

+ 1
- 1
classes/upload.class.php View File

32
         $randomname = Upload::generateRandomString(); // We give our file a random name - It will be this.
32
         $randomname = Upload::generateRandomString(); // We give our file a random name - It will be this.
33
 
33
 
34
         $cwd = getcwd(); // Our websites CWD (Current working dir)
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
         if (!in_array($extension, Config::$file_types)) {
37
         if (!in_array($extension, Config::$file_types)) {
38
             // Error! This file does not have an acceptable filetype
38
             // Error! This file does not have an acceptable filetype

Loading…
Cancel
Save